diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-05-02 20:45:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-05-02 20:45:43 +0000 |
commit | 51b8fd1998e934eea1670482afcff0b6f6ebf3c6 (patch) | |
tree | c81855a647668b5d6a06c45f4fe2d87e3b01a589 /libavcodec/h263dec.c | |
parent | ccf589a8fed254f7395b05beac2ef84e7dd89e6f (diff) | |
download | ffmpeg-51b8fd1998e934eea1670482afcff0b6f6ebf3c6.tar.gz |
freeze fix
Originally committed as revision 434 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 7a0e0ab4dc..1f8ef678b8 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -117,9 +117,10 @@ static int h263_decode_frame(AVCodecContext *avctx, return 0; } - if(s->bitstream_buffer_size) //divx 5.01+ frame reorder + if(s->bitstream_buffer_size){ //divx 5.01+ frame reorder init_get_bits(&s->gb, s->bitstream_buffer, s->bitstream_buffer_size); - else + s->bitstream_buffer_size=0; + }else init_get_bits(&s->gb, buf, buf_size); /* let's go :-) */ @@ -256,8 +257,7 @@ static int h263_decode_frame(AVCodecContext *avctx, memcpy(s->bitstream_buffer, buf + current_pos, buf_size - current_pos); s->bitstream_buffer_size= buf_size - current_pos; } - }else - s->bitstream_buffer_size=0; + } MPV_frame_end(s); |