changeset 1844:2de13087f46e libavcodec

skip b frames before first i frame
author michael
date Sun, 29 Feb 2004 02:25:19 +0000
parents 2b488cb389b6
children 3054613980a8
files rv10.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Sun Feb 29 02:08:28 2004 +0000
+++ b/rv10.c	Sun Feb 29 02:25:19 2004 +0000
@@ -360,6 +360,11 @@
         return -1;
     }
     
+    if(s->last_picture_ptr==NULL && s->pict_type==B_TYPE){
+        av_log(s->avctx, AV_LOG_ERROR, "early B pix\n");
+        return -1;
+    }
+    
     if (get_bits(&s->gb, 1)){
         av_log(s->avctx, AV_LOG_ERROR, "unknown bit set\n");
         return -1;