Commit 402ab250 authored by michaelni's avatar michaelni

vbv parameter parsing (more skiping actually ;) )


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@930 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3f0da634
...@@ -3767,8 +3767,17 @@ int mpeg4_decode_picture_header(MpegEncContext * s) ...@@ -3767,8 +3767,17 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
} }
s->low_delay= get_bits1(&s->gb); s->low_delay= get_bits1(&s->gb);
if(get_bits1(&s->gb)){ /* vbv parameters */ if(get_bits1(&s->gb)){ /* vbv parameters */
printf("vbv parameters not supported\n"); get_bits(&s->gb, 15); /* first_half_bitrate */
return -1; skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 15); /* latter_half_bitrate */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 15); /* first_half_vbv_buffer_size */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 3); /* latter_half_vbv_buffer_size */
get_bits(&s->gb, 11); /* first_half_vbv_occupancy */
skip_bits1(&s->gb); /* marker */
get_bits(&s->gb, 15); /* latter_half_vbv_occupancy */
skip_bits1(&s->gb); /* marker */
} }
}else{ }else{
// set low delay flag only once so the smart? low delay detection wont be overriden // set low delay flag only once so the smart? low delay detection wont be overriden
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment