History

h264: Decode short VUI without error Fixes 47j9R7PXBep.mov

Michael Niedermayer committed 14 years ago

Commit ae7a6441 parent d1c28e31 file · +2 −1Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t