Commit 1dfb682e authored by michaelni's avatar michaelni

returning the number of consumed bytes (2nd try)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@738 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 08045eb4
...@@ -447,7 +447,10 @@ uint64_t time= rdtsc(); ...@@ -447,7 +447,10 @@ uint64_t time= rdtsc();
#ifdef PRINT_FRAME_TIME #ifdef PRINT_FRAME_TIME
printf("%Ld\n", rdtsc()-time); printf("%Ld\n", rdtsc()-time);
#endif #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 = { AVCodec mpeg4_decoder = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment