# HG changeset patch # User michael # Date 1071794856 0 # Node ID 651b422d51d8384f6a4d98a008821eaf4e3a828d # Parent 92643b9794a9c244effcda088f52748db16e96f3 fix crash diff -r 92643b9794a9 -r 651b422d51d8 rv10.c --- 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; }