Re: [FFmpeg-devel] [PATCH] avcodec/mjpegdec: fix SOF check in EOI

2021-04-30 Thread James Almer
On 4/28/2021 11:53 AM, James Almer wrote: For frames decoded with skip_frame == AVDISCARD_ALL, a picture is not allocated and got_picture is never set to 1 even if a SOF and SOS were parsed. The existing check in EOI only cares if a SOF was parsed, not if a picture allocated, so change it and add

[FFmpeg-devel] [PATCH] avcodec/mjpegdec: fix SOF check in EOI

2021-04-28 Thread James Almer
For frames decoded with skip_frame == AVDISCARD_ALL, a picture is not allocated and got_picture is never set to 1 even if a SOF and SOS were parsed. The existing check in EOI only cares if a SOF was parsed, not if a picture allocated, so change it and add a new check to explicitly ensure a picture