diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-09 12:00:57 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-11 20:39:55 +0100 |
commit | d7b3ee9a3a03ab88d61a5895fbdbc6689f4dd671 (patch) | |
tree | 01a2faaf61e1439806e6b919e00331ca8a4d6b1a /libavcodec | |
parent | 598ce4ab4f1893e0661fc038101487e511937877 (diff) | |
download | ffmpeg-d7b3ee9a3a03ab88d61a5895fbdbc6689f4dd671.tar.gz |
lavc: deprecate avcodec_get_frame_defaults().
Also bump libavcodec micro and add an APIchanges entry saying that
av_frame_* should now be used instead of the lavc AVFrame functions.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 5 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 | ||||
-rw-r--r-- | libavcodec/version.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7836ae2f97..0e6ac0524e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3103,16 +3103,17 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); */ attribute_deprecated AVFrame *avcodec_alloc_frame(void); -#endif /** * Set the fields of the given AVFrame to default values. * * @param frame The AVFrame of which the fields should be set to default values. + * + * @deprecated use av_frame_unref() */ +attribute_deprecated void avcodec_get_frame_defaults(AVFrame *frame); -#if FF_API_AVFRAME_LAVC /** * Free the frame and any dynamically allocated objects in it, * e.g. extended_data. diff --git a/libavcodec/utils.c b/libavcodec/utils.c index e078a11408..1fa9cb88d2 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -801,6 +801,7 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en return fmt[0]; } +#if FF_API_AVFRAME_LAVC void avcodec_get_frame_defaults(AVFrame *frame) { if (frame->extended_data != frame->data) @@ -815,7 +816,6 @@ void avcodec_get_frame_defaults(AVFrame *frame) frame->extended_data = frame->data; } -#if FF_API_AVFRAME_LAVC AVFrame *avcodec_alloc_frame(void) { AVFrame *frame = av_mallocz(sizeof(AVFrame)); diff --git a/libavcodec/version.h b/libavcodec/version.h index c828dc8e61..2c3f2f214a 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -28,7 +28,7 @@ #define LIBAVCODEC_VERSION_MAJOR 55 #define LIBAVCODEC_VERSION_MINOR 28 -#define LIBAVCODEC_VERSION_MICRO 0 +#define LIBAVCODEC_VERSION_MICRO 1 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ LIBAVCODEC_VERSION_MINOR, \ |