X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmpeg12.c;h=a66ea134cae4f4f0a2533a76a6328db7c5886a12;hb=fe455f3328ca1ae4b71a345f50936d19f30e5c5f;hp=3edad5b802d439889ddb365537d5f93ef0c41cf3;hpb=de7ff1f774e2610d9ac23d2613a9f7e19e8c0f9d;p=ffmpeg diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 3edad5b802d..a66ea134cae 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -379,7 +379,7 @@ void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) s->gop_picture_number) & 0x3ff); put_bits(&s->pb, 3, s->pict_type); - s->vbv_delay_ptr= s->pb.buf + get_bit_count(&s->pb)/8; + s->vbv_delay_ptr= s->pb.buf + put_bits_count(&s->pb)/8; put_bits(&s->pb, 16, 0xFFFF); /* vbv_delay */ // RAL: Forward f_code also needed for B frames