diff options
author | James Almer <jamrial@gmail.com> | 2021-04-28 11:01:57 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-30 10:09:30 -0300 |
commit | fb5e2d71127ccae19c3f80ec363bb67d1871cb74 (patch) | |
tree | 915d3c99b9db6faa76603ac98cfef012253b0c73 /tools | |
parent | 8b83a4a885e3b92bd09354d6cb182fca47f80973 (diff) | |
download | ffmpeg-fb5e2d71127ccae19c3f80ec363bb67d1871cb74.tar.gz |
avcodec/mjpegdec: fix SOF check in EOI
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 was
allocated when skip_frame != AVDISCARD_ALL.
Fixes probing and decoding when skip_frame is AVDISCARD_ALL.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions