diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-21 11:46:44 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-05-23 06:46:17 +0200 |
commit | 5f30ac27795f9f98043e8582ccaad8813104adc4 (patch) | |
tree | c31dc7f98cce49b6b8eaf91c04dd532fb3f43978 /libavcodec/version.h | |
parent | 14634429b915333f3612eaf41db3954222dc4aaf (diff) | |
download | ffmpeg-5f30ac27795f9f98043e8582ccaad8813104adc4.tar.gz |
lavc: deprecate avcodec_copy_context()
Since AVCodecContext contains a lot of complex state, copying a codec
context is not a well-defined operation. The purpose for which it is
typically used (which is well-defined) is copying the stream parameters
from one codec context to another. That is now possible with through the
AVCodecParameters API. Therefore, there is no reason for
avcodec_copy_context() to exist.
Diffstat (limited to 'libavcodec/version.h')
-rw-r--r-- | libavcodec/version.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/version.h b/libavcodec/version.h index db3f33a6e6..57006c9fc8 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -200,5 +200,8 @@ #ifndef FF_API_OLD_BSF #define FF_API_OLD_BSF (LIBAVCODEC_VERSION_MAJOR < 59) #endif +#ifndef FF_API_COPY_CONTEXT +#define FF_API_COPY_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 59) +#endif #endif /* AVCODEC_VERSION_H */ |