OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d408d3d
)
avcodec/msmpeg4dec: print error in case of invalid vlc in msmpeg4_decode_dc for versi...
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 15 Dec 2013 12:22:03 +0000
(13:22 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 15 Dec 2013 12:22:03 +0000
(13:22 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/msmpeg4dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/msmpeg4dec.c
b/libavcodec/msmpeg4dec.c
index
7c260fe
..
d689b18
100644
(file)
--- a/
libavcodec/msmpeg4dec.c
+++ b/
libavcodec/msmpeg4dec.c
@@
-586,8
+586,10
@@
static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
} else {
level = get_vlc2(&s->gb, v2_dc_chroma_vlc.table, DC_VLC_BITS, 3);
}
- if (level < 0)
+ if (level < 0) {
+ av_log(s->avctx, AV_LOG_ERROR, "illegal dc vlc\n");
return -1;
+ }
level-=256;
}else{ //FIXME optimize use unified tables & index
if (n < 4) {