aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-12 15:02:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-12 15:02:47 +0000
commit33cbc6052a9ff9228cb11ff4dee0b65514a8f913 (patch)
tree1d807f70077114413e24da90898194c50b1e70f1 /libavcodec
parent7727783512d611a2049f2d53f92d44685252bbed (diff)
downloadffmpeg-33cbc6052a9ff9228cb11ff4dee0b65514a8f913.tar.gz
vbv parameter parsing (more skiping actually ;) )
Originally committed as revision 930 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index a7c6e723ae..90127e21fa 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -3767,8 +3767,17 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
}
s->low_delay= get_bits1(&s->gb);
if(get_bits1(&s->gb)){ /* vbv parameters */
- printf("vbv parameters not supported\n");
- return -1;
+ get_bits(&s->gb, 15); /* first_half_bitrate */
+ 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{
// set low delay flag only once so the smart? low delay detection wont be overriden