comparison svq1.c @ 982:a1866d06df1e libavcodec

workaround dropable p frame after first frame bug
author michaelni
date Thu, 09 Jan 2003 01:43:31 +0000
parents 7fccaa0d699d
children 1f9afd8b9131
comparison
equal deleted inserted replaced
981:8bec850dc9c7 982:a1866d06df1e
1091 printf("Error in svq1_decode_frame_header %i\n",result); 1091 printf("Error in svq1_decode_frame_header %i\n",result);
1092 #endif 1092 #endif
1093 return result; 1093 return result;
1094 } 1094 }
1095 1095
1096 //FIXME this avoids some confusion for "B frames" without 2 references
1097 //this should be removed after libavcodec can handle more flaxible picture types & ordering
1098 if(s->pict_type==B_TYPE && s->last_picture.data[0]==NULL) return buf_size;
1099
1096 if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size; 1100 if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size;
1097 1101
1098 if(MPV_frame_start(s, avctx) < 0) 1102 if(MPV_frame_start(s, avctx) < 0)
1099 return -1; 1103 return -1;
1100 1104