diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-09 10:09:21 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-16 12:44:50 +0100 |
commit | b9fb59d2ab05fdfe89d3fb0d7ecbbd91e560f57d (patch) | |
tree | 85fb175e2248a216457235b57a402c93859c8d99 /libavcodec/avcodec.h | |
parent | 5b9c3b4505206143d85398c1410949319fa1180f (diff) | |
download | ffmpeg-b9fb59d2ab05fdfe89d3fb0d7ecbbd91e560f57d.tar.gz |
lavc: deprecate avcodec_alloc_frame().
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 05516bd38e..e1315c2eb4 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3096,14 +3096,13 @@ const AVClass *avcodec_get_class(void); */ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); +#if FF_API_AVFRAME_LAVC /** - * Allocate an AVFrame and set its fields to default values. The resulting - * struct must be freed using avcodec_free_frame(). - * - * @return An AVFrame filled with default values or NULL on failure. - * @see avcodec_get_frame_defaults + * @deprecated use av_frame_alloc() */ +attribute_deprecated AVFrame *avcodec_alloc_frame(void); +#endif /** * Set the fields of the given AVFrame to default values. |