Mercurial > libavcodec.hg
changeset 353:386f430e93f4 libavcodec
freeze fix
author | michaelni |
---|---|
date | Thu, 02 May 2002 20:45:43 +0000 |
parents | 5a8eb5cf9f92 |
children | 167aa21aa250 |
files | h263dec.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/h263dec.c Thu May 02 13:35:33 2002 +0000 +++ b/h263dec.c Thu May 02 20:45:43 2002 +0000 @@ -117,9 +117,10 @@ 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 @@ 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);