Commit c41b1f95 authored by jehan's avatar jehan

avoid using functions: av_frame_alloc(), av_frame_unref() and av_frame_free()...

avoid using functions: av_frame_alloc(), av_frame_unref() and av_frame_free() until libavcodec version 55.45.101
parent a56c4886
......@@ -90,14 +90,38 @@ int avcodec_open2 (AVCodecContext *avctx, const AVCodec *codec, /*AVDictionary*/
#ifndef HAVE_FUN_av_frame_alloc
AVFrame* av_frame_alloc (void);
#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,45,101)
#define av_frame_alloc avcodec_alloc_frame
/*http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/APIchanges
2013-12-11 - 29c83d2 / b9fb59d,409a143 / 9431356,44967ab / d7b3ee9 - lavc 55.45.101 / 55.28.1 - avcodec.h
av_frame_alloc(), av_frame_unref() and av_frame_free() now can and should be
used instead of avcodec_alloc_frame(), avcodec_get_frame_defaults() and
avcodec_free_frame() respectively. The latter three functions are deprecated.
*jehan: previous version (55.39.100 at least) might be buggy */
#endif
#ifndef HAVE_FUN_av_frame_free
void av_frame_free (AVFrame** frame);
#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,45,101)
#define av_frame_free avcodec_free_frame
/*http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/APIchanges
2013-12-11 - 29c83d2 / b9fb59d,409a143 / 9431356,44967ab / d7b3ee9 - lavc 55.45.101 / 55.28.1 - avcodec.h
av_frame_alloc(), av_frame_unref() and av_frame_free() now can and should be
used instead of avcodec_alloc_frame(), avcodec_get_frame_defaults() and
avcodec_free_frame() respectively. The latter three functions are deprecated.
*jehan: previous version (55.39.100 at least) might be buggy */
#endif
#ifndef HAVE_FUN_av_frame_unref
void av_frame_unref (AVFrame *frame);
#elif LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,45,101)
#define av_frame_unref avcodec_get_frame_defaults
/*http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/APIchanges
2013-12-11 - 29c83d2 / b9fb59d,409a143 / 9431356,44967ab / d7b3ee9 - lavc 55.45.101 / 55.28.1 - avcodec.h
av_frame_alloc(), av_frame_unref() and av_frame_free() now can and should be
used instead of avcodec_alloc_frame(), avcodec_get_frame_defaults() and
avcodec_free_frame() respectively. The latter three functions are deprecated.
*jehan: previous version (55.39.100 at least) might be buggy */
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment