aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-01 21:07:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-01 21:07:52 +0000
commit6c58758737cf540f79b31f64dc10e3cdc4719f0c (patch)
tree59e5ce9e9aa0f315673eb25c51418ce1600af443 /libavcodec
parent7a78bc85aaf34ef9039c9a324f9756bdf9566a46 (diff)
downloadffmpeg-6c58758737cf540f79b31f64dc10e3cdc4719f0c.tar.gz
It appears s->bitstream_buffer_size has to be 0 at the end so rather use assert.
Originally committed as revision 20996 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index d75904cec4..02c75edf9d 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -667,8 +667,9 @@ retry:
s->error_status_table[s->mb_num-1]= AC_ERROR|DC_ERROR|MV_ERROR;
}
+ assert(s->bitstream_buffer_size==0);
/* divx 5.01+ bistream reorder stuff */
- if(s->codec_id==CODEC_ID_MPEG4 && s->bitstream_buffer_size==0 && s->divx_packed){
+ if(s->codec_id==CODEC_ID_MPEG4 && s->divx_packed){
int current_pos= get_bits_count(&s->gb)>>3;
int startcode_found=0;