aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bmp.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-04-28 11:01:57 -0300
committerJames Almer <jamrial@gmail.com>2021-04-30 10:09:30 -0300
commitfb5e2d71127ccae19c3f80ec363bb67d1871cb74 (patch)
tree915d3c99b9db6faa76603ac98cfef012253b0c73 /libavcodec/bmp.c
parent8b83a4a885e3b92bd09354d6cb182fca47f80973 (diff)
downloadffmpeg-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 'libavcodec/bmp.c')
0 files changed, 0 insertions, 0 deletions