Commit 06d69a2d authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '458e53f5'

* commit '458e53f5':
  mpegvideo_enc: actually add the side data with vbv_delay to the packet
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 3564dfd5 458e53f5
......@@ -1987,6 +1987,13 @@ FF_ENABLE_DEPRECATION_WARNINGS
return AVERROR(ENOMEM);
props->vbv_delay = vbv_delay * 300;
ret = av_packet_add_side_data(pkt, AV_PKT_DATA_CPB_PROPERTIES,
(uint8_t*)props, props_size);
if (ret < 0) {
av_freep(&props);
return ret;
}
#if FF_API_VBV_DELAY
FF_DISABLE_DEPRECATION_WARNINGS
avctx->vbv_delay = vbv_delay * 300;
......
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