comparison h264.c @ 2254:0dfe4e32b19c libavcodec

H.264 max reference pictures fix by (Loren Merritt <lorenm at u dot washington dot edu>)
author michael
date Sat, 25 Sep 2004 09:59:36 +0000
parents bf414a07af2e
children 507690ff49a2
comparison
equal deleted inserted replaced
2253:1085c5284bf1 2254:0dfe4e32b19c
5428 av_log(h->s.avctx, AV_LOG_ERROR, "illegal POC type %d\n", sps->poc_type); 5428 av_log(h->s.avctx, AV_LOG_ERROR, "illegal POC type %d\n", sps->poc_type);
5429 return -1; 5429 return -1;
5430 } 5430 }
5431 5431
5432 sps->ref_frame_count= get_ue_golomb(&s->gb); 5432 sps->ref_frame_count= get_ue_golomb(&s->gb);
5433 if(sps->ref_frame_count > MAX_PICTURE_COUNT-2){
5434 av_log(h->s.avctx, AV_LOG_ERROR, "too many reference frames\n");
5435 }
5433 sps->gaps_in_frame_num_allowed_flag= get_bits1(&s->gb); 5436 sps->gaps_in_frame_num_allowed_flag= get_bits1(&s->gb);
5434 sps->mb_width= get_ue_golomb(&s->gb) + 1; 5437 sps->mb_width= get_ue_golomb(&s->gb) + 1;
5435 sps->mb_height= get_ue_golomb(&s->gb) + 1; 5438 sps->mb_height= get_ue_golomb(&s->gb) + 1;
5436 sps->frame_mbs_only_flag= get_bits1(&s->gb); 5439 sps->frame_mbs_only_flag= get_bits1(&s->gb);
5437 if(!sps->frame_mbs_only_flag) 5440 if(!sps->frame_mbs_only_flag)