diff options
author | Dustin Brody <libav@parsoma.net> | 2011-08-25 19:47:01 -0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-08-31 10:28:29 +0200 |
commit | a18e04bcf989a9d7f5629c573f9d70f8a020c7a7 (patch) | |
tree | 2dda01b053d2355d602993cca9b092d279764ac5 /libavcodec/mxpegdec.c | |
parent | 7485e547080baafdb61a8d0e7c50d8a1598bbcb6 (diff) | |
download | ffmpeg-a18e04bcf989a9d7f5629c573f9d70f8a020c7a7.tar.gz |
mjpeg: treat external huffman table setup failure as codec init failure if external huffman table use requested
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/mxpegdec.c')
-rw-r--r-- | libavcodec/mxpegdec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/mxpegdec.c b/libavcodec/mxpegdec.c index 92fd244ec7..fd3fef47a9 100644 --- a/libavcodec/mxpegdec.c +++ b/libavcodec/mxpegdec.c @@ -47,9 +47,7 @@ static av_cold int mxpeg_decode_init(AVCodecContext *avctx) s->picture[0].reference = s->picture[1].reference = 3; s->jpg.picture_ptr = &s->picture[0]; - ff_mjpeg_decode_init(avctx); - - return 0; + return ff_mjpeg_decode_init(avctx); } static int mxpeg_decode_app(MXpegDecodeContext *s, |