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:
13c56e9
)
4xm: Dont ignore dc run errors
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 29 Jun 2013 23:29:49 +0000
(
01:29
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 29 Jun 2013 23:35:22 +0000
(
01:35
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/4xm.c
patch
|
blob
|
history
diff --git
a/libavcodec/4xm.c
b/libavcodec/4xm.c
index
dc84e96
..
6acdd56
100644
(file)
--- a/
libavcodec/4xm.c
+++ b/
libavcodec/4xm.c
@@
-506,8
+506,10
@@
static int decode_i_block(FourXContext *f, int16_t *block)
/* DC coef */
val = get_vlc2(&f->pre_gb, f->pre_vlc.table, ACDC_VLC_BITS, 3);
- if (val >> 4)
+ if (val >> 4)
{
av_log(f->avctx, AV_LOG_ERROR, "error dc run != 0\n");
+ return AVERROR_INVALIDDATA;
+ }
if (val)
val = get_xbits(&f->gb, val);