X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff_plain/be52b95d311bb392fe99a6bb3b8db74e255043e3..dd6ee019ea828a2700e38366983ef343612021c6:/libavcodec/utils.c diff --git a/libavcodec/utils.c b/libavcodec/utils.c index b039885..488b67c 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -3488,3 +3488,17 @@ const uint8_t *avpriv_find_start_code(const uint8_t *av_restrict p, return p + 4; } + +AVCPBProperties *av_cpb_properties_alloc(size_t *size) +{ + AVCPBProperties *props = av_mallocz(sizeof(AVCPBProperties)); + if (!props) + return NULL; + + if (size) + *size = sizeof(*props); + + props->vbv_delay = UINT64_MAX; + + return props; +}