projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'f0b769c16daafa64720dcba7fa81a9f5255e1d29'
[ffmpeg.git]
/
libavcodec
/
utils.c
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
b039885
..
488b67c
100644
(file)
--- 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;
}
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;
+}