Unified · Split
| @@ -229,7 +229,8 @@ static inline int decode_vui_parameters(H264Context *h, SPS *sps){ · 228 unmodified lines | ||
| 229 | 229 | if(sps->nal_hrd_parameters_present_flag || sps->vcl_hrd_parameters_present_flag) |
| 230 | 230 | get_bits1(&s->gb); /* low_delay_hrd_flag */ |
| 231 | 231 | sps->pic_struct_present_flag = get_bits1(&s->gb); |
| 232 | − | |
| 232 | + if(!get_bits_left(&s->gb)) | |
| 233 | + return 0; | |
| 233 | 234 | sps->bitstream_restriction_flag = get_bits1(&s->gb); |
| 234 | 235 | if(sps->bitstream_restriction_flag){ |
| 235 | 236 | get_bits1(&s->gb); /* motion_vectors_over_pic_boundaries_flag */ |