@ -260,10 +260,7 @@ int FFAudioResample::encodeAudioFrame(AVFrame *frame, int *data_present) {
}
ret = avcodec_receive_packet(resample->outCodecCtx, &resample->outPacket);
if (ret == AVERROR(EAGAIN)) {
ret = 0;
goto cleanup;
} else if (ret == AVERROR_EOF) {
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
} else if (ret < 0) {