Hi,

On Mon, Nov 11, 2024 at 9:06 AM Ronald S. Bultje <rsbul...@gmail.com> wrote:

> On Fri, Nov 8, 2024 at 10:38 AM Ronald S. Bultje <rsbul...@gmail.com>
> wrote:
>
>> Before:
>> $ make tools/enc_recon_frame_test
>> $ tools/enc_recon_frame_test ~/Movies/cif/bus_cif.y4m libx264 'tune=psnr'
>> Error submitting a frame for encoding
>>
>> After:
>> All 150 encoded frames match
>> ---
>>  tools/enc_recon_frame_test.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c
>> index c6da6750fe..83cc8343d3 100644
>> --- a/tools/enc_recon_frame_test.c
>> +++ b/tools/enc_recon_frame_test.c
>> @@ -178,6 +178,8 @@ static int process_frame(DecodeContext *dc, AVFrame
>> *frame)
>>      }
>>
>>      ret = avcodec_send_frame(pd->enc, frame);
>> +    if (ret == AVERROR_EOF && !frame)
>> +        return 0;
>>      if (ret < 0) {
>>          fprintf(stderr, "Error submitting a frame for encoding\n");
>>          return ret;
>> --
>> 2.43.1
>>
>
> Will apply by Wednesday.
>

Applied.

Ronald
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to