changeset 1700:651b422d51d8 libavcodec

fix crash
author michael
date Fri, 19 Dec 2003 00:47:36 +0000
parents 92643b9794a9
children 95b7ac3344df
files rv10.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Thu Dec 18 23:44:49 2003 +0000
+++ b/rv10.c	Fri Dec 19 00:47:36 2003 +0000
@@ -379,7 +379,7 @@
     if(s->avctx->has_b_frames){
         if (get_bits(&s->gb, 1)){
             av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n");
-            return -1;
+//            return -1;
         }
         seq= get_bits(&s->gb, 15);
     }else
@@ -537,7 +537,7 @@
     }
 //if(s->pict_type == P_TYPE) return 0;
 
-    if (s->mb_x == 0 && s->mb_y == 0) {
+    if ((s->mb_x == 0 && s->mb_y == 0) || s->current_picture_ptr==NULL) {
         if(MPV_frame_start(s, avctx) < 0)
             return -1;
     }