mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/mjpegdec: Check initializing Huffman tables
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3cc685b7bc
commit
d5ddfec6c3
@ -154,7 +154,8 @@ av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
|
||||
if (ff_mjpeg_decode_dht(s)) {
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"error using external huffman table, switching back to internal\n");
|
||||
init_default_huffman_tables(s);
|
||||
if ((ret = init_default_huffman_tables(s)) < 0)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
if (avctx->field_order == AV_FIELD_BB) { /* quicktime icefloe 019 */
|
||||
|
Loading…
Reference in New Issue
Block a user