|
|
@ -228,7 +228,6 @@ static inline int decode_vui_parameters(H264Context *h, SPS *sps){ |
|
|
|
get_ue_golomb(&s->gb); /*max_dec_frame_buffering*/ |
|
|
|
get_ue_golomb(&s->gb); /*max_dec_frame_buffering*/ |
|
|
|
|
|
|
|
|
|
|
|
if(s->gb.size_in_bits < get_bits_count(&s->gb)){ |
|
|
|
if(s->gb.size_in_bits < get_bits_count(&s->gb)){ |
|
|
|
av_log(h->s.avctx, AV_LOG_ERROR, "Overread VUI by %d bits\n", get_bits_count(&s->gb) - s->gb.size_in_bits); |
|
|
|
|
|
|
|
sps->num_reorder_frames=0; |
|
|
|
sps->num_reorder_frames=0; |
|
|
|
sps->bitstream_restriction_flag= 0; |
|
|
|
sps->bitstream_restriction_flag= 0; |
|
|
|
} |
|
|
|
} |
|
|
@ -238,6 +237,10 @@ static inline int decode_vui_parameters(H264Context *h, SPS *sps){ |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(s->gb.size_in_bits < get_bits_count(&s->gb)){ |
|
|
|
|
|
|
|
av_log(h->s.avctx, AV_LOG_ERROR, "Overread VUI by %d bits\n", get_bits_count(&s->gb) - s->gb.size_in_bits); |
|
|
|
|
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|