diff options
author | James Almer <jamrial@gmail.com> | 2021-04-18 10:59:35 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 11:47:24 -0300 |
commit | 3749eede66c3774799766b1f246afae8a6ffc9bb (patch) | |
tree | 36d6bf7ddb95526618f5d0b2e5787254e20d46df /libavformat/avformat.h | |
parent | e5af9203098a889f36b759652615046254d45102 (diff) |
avformat: remove deprecated AVStream.codec
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 28069d45dc..624d2dae2c 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -839,13 +839,7 @@ typedef struct AVStream { * encoding: set by the user, replaced by libavformat if left unset */ int id; -#if FF_API_LAVF_AVCTX - /** - * @deprecated use the codecpar struct instead - */ - attribute_deprecated - AVCodecContext *codec; -#endif + void *priv_data; /** @@ -1837,13 +1831,11 @@ const AVClass *avformat_get_class(void); * * When muxing, should be called by the user before avformat_write_header(). * - * User is required to call avcodec_close() and avformat_free_context() to - * clean up the allocation by avformat_new_stream(). + * User is required to call avformat_free_context() to clean up the allocation + * by avformat_new_stream(). * * @param s media file handle - * @param c If non-NULL, the AVCodecContext corresponding to the new stream - * will be initialized to use this codec. This is needed for e.g. codec-specific - * defaults to be set, so codec should be provided if it is known. + * @param c unused, does nothing * * @return newly created stream or NULL on error. */ |