projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0b133b
)
mpegvideo_enc: actually add the side data with vbv_delay to the packet
author
Anton Khirnov
<anton@khirnov.net>
Thu, 10 Dec 2015 21:16:13 +0000
(22:16 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Sat, 12 Dec 2015 20:16:41 +0000
(21:16 +0100)
Fixes
2507b5dd674834be7261772996f47ae3b95cca69
libavcodec/mpegvideo_enc.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/mpegvideo_enc.c
b/libavcodec/mpegvideo_enc.c
index
6f58585
..
34e008f
100644
(file)
--- a/
libavcodec/mpegvideo_enc.c
+++ b/
libavcodec/mpegvideo_enc.c
@@
-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;