|
|
@ -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) { |
|
|
|