diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-11-09 04:03:57 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-02-21 01:04:12 +0300 |
commit | 2651352988212531038326c44754ece1728c4a3b (patch) | |
tree | 0a881dcc977760e4181e7018028d790806b72c15 /libavcodec/cbs.h | |
parent | cc1c94dacd0642ac1a6cad45deb65071f127d91a (diff) |
cbs: Allocate the context inside the init function
... instead of making callers allocate it themselves. This is more
consistent with other APIs in libav.
Diffstat (limited to 'libavcodec/cbs.h')
-rw-r--r-- | libavcodec/cbs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h index 01b2239b7b..34ee78be32 100644 --- a/libavcodec/cbs.h +++ b/libavcodec/cbs.h @@ -169,15 +169,15 @@ typedef struct CodedBitstreamContext { /** - * Initialise a new context for the given codec. + * Create and initialise a new context for the given codec. */ -int ff_cbs_init(CodedBitstreamContext *ctx, +int ff_cbs_init(CodedBitstreamContext **ctx, enum AVCodecID codec_id, void *log_ctx); /** * Close a context and free all internal state. */ -void ff_cbs_close(CodedBitstreamContext *ctx); +void ff_cbs_close(CodedBitstreamContext **ctx); /** |