Mercurial > libavcodec.hg
changeset 532:d2147d9704ce libavcodec
returning the number of consumed bytes (2nd try)
author | michaelni |
---|---|
date | Wed, 10 Jul 2002 20:21:00 +0000 |
parents | f5d7fcc81787 |
children | 3c07cf9595de |
files | h263dec.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h263dec.c Wed Jul 10 20:05:42 2002 +0000 +++ b/h263dec.c Wed Jul 10 20:21:00 2002 +0000 @@ -447,7 +447,10 @@ #ifdef PRINT_FRAME_TIME printf("%Ld\n", rdtsc()-time); #endif - return (get_bits_count(&s->gb)+7)>>3; + if(s->gb.size != buf_size) + return buf_size; //divx5 b frame reorder + else + return ((get_bits_count(&s->gb)+7)>>3) + s->bitstream_buffer_size; } AVCodec mpeg4_decoder = {