diff options
author | Christophe Massiot <massiot@via.ecp.fr> | 2011-02-10 16:38:03 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-15 14:20:19 +0000 |
commit | 55bad0c602c75a2c7e4dbfa466edacb0bad6a6eb (patch) | |
tree | 7e12126f25ba128d3cd43f157de7ac3b04cbf59f /libavcodec/mpegvideo_enc.c | |
parent | 71f88b1f3843fdb676d6f72181da0c8c460341d8 (diff) | |
download | ffmpeg-55bad0c602c75a2c7e4dbfa466edacb0bad6a6eb.tar.gz |
Pass VBV delay to the calling application via ctx
VBV delay is useful for T-STD compliance in some TS muxers. It is
certainly possible to retrieve it by parsing the output of FFmpeg, but
getting it from the context makes it simpler and less error-prone.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 6167a9b20e..a7f16080f4 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1381,6 +1381,7 @@ vbv_retry: s->vbv_delay_ptr[1] = vbv_delay>>5; s->vbv_delay_ptr[2] &= 0x07; s->vbv_delay_ptr[2] |= vbv_delay<<3; + avctx->vbv_delay = vbv_delay*300; } s->total_bits += s->frame_bits; avctx->frame_bits = s->frame_bits; |