changeset 2379:a9aae760463e libavcodec

seeking in rm
author michael
date Mon, 06 Dec 2004 22:44:03 +0000
parents 1f56314b3770
children 3daf36fd1999
files rv10.c
diffstat 1 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Mon Dec 06 17:21:17 2004 +0000
+++ b/rv10.c	Mon Dec 06 22:44:03 2004 +0000
@@ -400,20 +400,28 @@
     }
         
     if(s->avctx->has_b_frames){
+        int f1=9;
+        int f2=9;
+        int f3=9;
+
         if (get_bits(&s->gb, 1)){
-//            av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n");
+            av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n");
 //            return -1;
         }
         seq= get_bits(&s->gb, 14)<<1;
         
         if(s->avctx->extradata_size >= 4 && ((uint8_t*)s->avctx->extradata)[1]&1){
-            get_bits(&s->gb, 1);
+            f1= get_bits(&s->gb, 1);
         }
         if(s->avctx->extradata_size >= 4 && ((uint8_t*)s->avctx->extradata)[1]&2){
-            get_bits(&s->gb, 1);
+            f2= get_bits(&s->gb, 1);
         }
         if(s->avctx->extradata_size >= 4 && ((uint8_t*)s->avctx->extradata)[1]&4){
-            get_bits(&s->gb, 2);
+            f3= get_bits(&s->gb, 2);
+        }
+        
+        if(s->avctx->debug & FF_DEBUG_PICT_INFO){
+            av_log(s->avctx, AV_LOG_DEBUG, "F %d %d %d\n", f1,f2,f3);            
         }
 
         mb_pos= get_bits(&s->gb, av_log2(s->mb_num-1)+1);
@@ -733,6 +741,7 @@
     NULL,
     rv10_decode_end,
     rv10_decode_frame,
-    CODEC_CAP_DR1
+    CODEC_CAP_DR1,
+    .flush= ff_mpeg_flush,
 };