projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08dce7b
)
returning the number of consumed bytes (2nd try)
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Jul 2002 20:21:00 +0000
(20:21 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Jul 2002 20:21:00 +0000
(20:21 +0000)
Originally committed as revision 738 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h263dec.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/h263dec.c
b/libavcodec/h263dec.c
index
c766c7c
..
9df7082
100644
(file)
--- 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 = {