Ticket #3232: segfault_fix.diff
File segfault_fix.diff, 1.8 KB (added by , 17 years ago) |
---|
-
h264.c
4659 4659 s->picture_structure= PICT_FRAME; 4660 4660 }else{ 4661 4661 if(get_bits1(&s->gb)) { //field_pic_flag 4662 s->picture_structure= PICT_TOP_FIELD + get_bits1(&s->gb); //bottom_field_flag4662 //s->picture_structure= PICT_TOP_FIELD + get_bits1(&s->gb); //bottom_field_flag 4663 4663 av_log(h->s.avctx, AV_LOG_ERROR, "PAFF interlacing is not implemented\n"); 4664 return -1; 4664 4665 } else { 4665 4666 s->picture_structure= PICT_FRAME; 4666 4667 h->mb_aff_frame = h->sps.mb_aff; … … 4716 4717 if(h->slice_type == P_TYPE || h->slice_type == SP_TYPE || h->slice_type == B_TYPE){ 4717 4718 if(h->slice_type == B_TYPE){ 4718 4719 h->direct_spatial_mv_pred= get_bits1(&s->gb); 4719 if(h->sps.mb_aff && h->direct_spatial_mv_pred) 4720 if(h->sps.mb_aff && h->direct_spatial_mv_pred){ 4720 4721 av_log(h->s.avctx, AV_LOG_ERROR, "MBAFF + spatial direct mode is not implemented\n"); 4722 return -1; 4723 } 4721 4724 } 4722 4725 num_ref_idx_active_override_flag= get_bits1(&s->gb); 4723 4726 … … 8175 8178 8176 8179 if(decode_slice_header(h) < 0){ 8177 8180 av_log(h->s.avctx, AV_LOG_ERROR, "decode_slice_header error\n"); 8178 break;8181 return -1; 8179 8182 } 8180 8183 s->current_picture_ptr->key_frame= (h->nal_unit_type == NAL_IDR_SLICE); 8181 8184 if(h->redundant_pic_count==0 && s->hurry_up < 5 … … 8193 8196 8194 8197 if(decode_slice_header(h) < 0){ 8195 8198 av_log(h->s.avctx, AV_LOG_ERROR, "decode_slice_header error\n"); 8199 return -1; 8196 8200 } 8197 8201 break; 8198 8202 case NAL_DPB: