diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-29 21:43:56 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-11 20:39:54 +0100 |
commit | 943135621830ac3857d3cf766cfc280a95bb3c13 (patch) | |
tree | 867bca0570773fc8c112ef641697b70232681af6 /libavcodec/avcodec.h | |
parent | eb891b3114f499e96b9faddd0b0ae856345dfbd9 (diff) | |
download | ffmpeg-943135621830ac3857d3cf766cfc280a95bb3c13.tar.gz |
lavc: deprecate avcodec_free_frame()
av_frame_free() should be used instead.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 4ce6d61cd2..7836ae2f97 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3112,6 +3112,7 @@ AVFrame *avcodec_alloc_frame(void); */ 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. @@ -3121,8 +3122,12 @@ void avcodec_get_frame_defaults(AVFrame *frame); * @warning this function does NOT free the data buffers themselves * (it does not know how, since they might have been allocated with * a custom get_buffer()). + * + * @deprecated use av_frame_free() */ +attribute_deprecated void avcodec_free_frame(AVFrame **frame); +#endif /** * Initialize the AVCodecContext to use the given AVCodec. Prior to using this |