comparison h264.c @ 9418:95f37e7d10cd libavcodec

Get rid of the non sensical idea of using the current picture for missing reference pictures.
author michael
date Sun, 12 Apr 2009 20:40:18 +0000
parents 8d228c29a338
children f2f83796f07b
comparison
equal deleted inserted replaced
9417:8d228c29a338 9418:95f37e7d10cd
2948 } 2948 }
2949 for(list=0; list<h->list_count; list++){ 2949 for(list=0; list<h->list_count; list++){
2950 for(index= 0; index < h->ref_count[list]; index++){ 2950 for(index= 0; index < h->ref_count[list]; index++){
2951 if(!h->ref_list[list][index].data[0]){ 2951 if(!h->ref_list[list][index].data[0]){
2952 av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference picture\n"); 2952 av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference picture\n");
2953 h->ref_list[list][index]= s->current_picture; //FIXME this is not a sensible solution 2953 if(h->default_ref_list[list][0].data[0])
2954 h->ref_list[list][index]= h->default_ref_list[list][0];
2955 else
2956 return -1;
2954 } 2957 }
2955 } 2958 }
2956 } 2959 }
2957 2960
2958 return 0; 2961 return 0;