Feature: merge error code

pull/221/head
xufuji456 2 years ago
parent f25d25179a
commit 5e922d41d1
  1. 5
      app/src/main/cpp/ff_audio_resample.cpp

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

Loading…
Cancel
Save