mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
mpegvideo_enc: actually add the side data with vbv_delay to the packet
Fixes 2507b5dd67
This commit is contained in:
parent
b0b133b8c0
commit
458e53f51f
@ -1808,6 +1808,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;
|
||||
|
Loading…
Reference in New Issue
Block a user