summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-07-28 14:30:32 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-08-28 16:04:27 +0200
commit8f12ef9860d0e164e4647fd5d5cebdb3cfb34a79 (patch)
tree28d97cd4f7551412c02b4dcd5eb82d72eea3ed12 /libavcodec/utils.c
parentbf7114b6caad8cf94696b0299c13b0d26bf291be (diff)
lavu: Drop deprecated duplicated AVFrame/AVCodecContext parameters
Deprecated in 10/2012.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index c5f60dc407..1d718b288c 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -818,41 +818,6 @@ int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt)
return ret;
}
-#if FF_API_AVFRAME_LAVC
-void avcodec_get_frame_defaults(AVFrame *frame)
-{
- if (frame->extended_data != frame->data)
- av_freep(&frame->extended_data);
-
- memset(frame, 0, sizeof(AVFrame));
-
- frame->pts = AV_NOPTS_VALUE;
- frame->key_frame = 1;
- frame->sample_aspect_ratio = (AVRational) {0, 1 };
- frame->format = -1; /* unknown */
- frame->extended_data = frame->data;
-}
-
-AVFrame *avcodec_alloc_frame(void)
-{
- AVFrame *frame = av_mallocz(sizeof(AVFrame));
-
- if (!frame)
- return NULL;
-
-FF_DISABLE_DEPRECATION_WARNINGS
- avcodec_get_frame_defaults(frame);
-FF_ENABLE_DEPRECATION_WARNINGS
-
- return frame;
-}
-
-void avcodec_free_frame(AVFrame **frame)
-{
- av_frame_free(frame);
-}
-#endif
-
int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options)
{
int ret = 0;