diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-07-10 20:21:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-07-10 20:21:00 +0000 |
commit | 9d076823059f3d1f84ab2575b94fc9c325584dc2 (patch) | |
tree | f19d3bfac6c270d8e3da94cd194b85590f348703 | |
parent | 08dce7b02fc08a72a4f815db9b32a2a814561506 (diff) | |
download | ffmpeg-9d076823059f3d1f84ab2575b94fc9c325584dc2.tar.gz |
returning the number of consumed bytes (2nd try)
Originally committed as revision 738 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263dec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index c766c7cbeb..9df7082d89 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -447,7 +447,10 @@ uint64_t time= rdtsc(); #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 = { |