changeset 543:8f8f4885d874 libavcodec

return buf_size again, i hope kabi is finally happy now ;)
author michaelni
date Sat, 13 Jul 2002 15:03:47 +0000
parents d55978a3c369
children 5264fb104700
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Sat Jul 13 14:55:12 2002 +0000
+++ b/h263dec.c	Sat Jul 13 15:03:47 2002 +0000
@@ -172,7 +172,7 @@
             return -1;
     }
 
-    if(ret==FRAME_SKIPED) return (get_bits_count(&s->gb)+7)>>3;
+    if(ret==FRAME_SKIPED) return buf_size;
     /* skip if the header was thrashed */
     if (ret < 0){
         fprintf(stderr, "header damaged\n");
@@ -447,10 +447,7 @@
 #ifdef PRINT_FRAME_TIME
 printf("%Ld\n", rdtsc()-time);
 #endif
-    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;
+    return buf_size;
 }
 
 AVCodec mpeg4_decoder = {