summaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>2015-04-03 19:14:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-04 02:23:58 +0200
commitf62880bfb8c72ccbfdce4dd9daf93af691060ddd (patch)
tree67cadf9f9b4d99a58e2d1d3be1d71c5bcd0be148 /libavcodec/h263dec.c
parent241913c0d041e09ddded851a47e0a4a7d6f88561 (diff)
downloadffmpeg-streaming-f62880bfb8c72ccbfdce4dd9daf93af691060ddd.zip
ffmpeg-streaming-f62880bfb8c72ccbfdce4dd9daf93af691060ddd.tar.gz
mpeg4: use a self-explanatory #define MAX_NVOP_SIZE
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index a1981a3..c28a465 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -459,7 +459,7 @@ retry:
}
}
- if (s->bitstream_buffer_size && (s->divx_packed || buf_size < 20)) // divx 5.01+/xvid frame reorder
+ if (s->bitstream_buffer_size && (s->divx_packed || buf_size <= MAX_NVOP_SIZE)) // divx 5.01+/xvid frame reorder
ret = init_get_bits8(&s->gb, s->bitstream_buffer,
s->bitstream_buffer_size);
else
OpenPOWER on IntegriCloud