changeset 3698:653fc28f78b4 libavcodec

Disable B-frames decoding until they produce correct picture
author kostya
date Sun, 10 Sep 2006 04:24:53 +0000
parents 596e62da8f29
children c537a97eec66
files vc1.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Sat Sep 09 22:53:44 2006 +0000
+++ b/vc1.c	Sun Sep 10 04:24:53 2006 +0000
@@ -4180,6 +4180,12 @@
         return -1;
     }
 
+    /* skip B frames as they are not decoded correctly */
+    if(s->pict_type == B_TYPE){
+        av_free(buf2);
+        return buf_size;
+    }
+
     // for hurry_up==5
     s->current_picture.pict_type= s->pict_type;
     s->current_picture.key_frame= s->pict_type == I_TYPE;