OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ea4c7
)
Revert "mjpeg: treat external huffman table setup failure as codec init failure if...
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 1 Sep 2011 23:18:22 +0000
(
01:18
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 1 Sep 2011 23:18:22 +0000
(
01:18
+0200)
This broke mplayer
This reverts commit
a18e04bcf989a9d7f5629c573f9d70f8a020c7a7
.
libavcodec/mjpegdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpegdec.c
b/libavcodec/mjpegdec.c
index
4baacab
..
cb0c692
100644
(file)
--- a/
libavcodec/mjpegdec.c
+++ b/
libavcodec/mjpegdec.c
@@
-108,8
+108,8
@@
av_cold int ff_mjpeg_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_INFO, "mjpeg: using external huffman table\n");
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);
if (ff_mjpeg_decode_dht(s)) {
- av_log(avctx, AV_LOG_ERROR, "mjpeg: error using external huffman table\n");
-
return AVERROR_INVALIDDATA
;
+ av_log(avctx, AV_LOG_ERROR, "mjpeg: error using external huffman table
, switching back to internal
\n");
+
build_basic_mjpeg_vlc(s)
;
}
}
if (avctx->extradata_size > 9 &&