aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-17 14:03:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-17 14:03:38 +0100
commit5abdda214df53f009434f19b9eb8e1375f2924d9 (patch)
treec682078c7e3f7c3fe93bedf68dd162408a125897
parent6aed7bfd845349e68708b5791b3296c0e07f1d0d (diff)
downloadffmpeg-5abdda214df53f009434f19b9eb8e1375f2924d9.tar.gz
avcodec/utils: implement avcodec_alloc_frame() through av_alloc_frame()
This ensures that theres just one AVFrame allocation function and libs dont produce multiple AVFrame variants after a minor lib update Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/utils.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d738a865ab..972de726bb 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1067,15 +1067,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
AVFrame *avcodec_alloc_frame(void)
{
- AVFrame *frame = av_malloc(sizeof(AVFrame));
-
- if (frame == NULL)
- return NULL;
-
- frame->extended_data = NULL;
- avcodec_get_frame_defaults(frame);
-
- return frame;
+ return av_frame_alloc();
}
void avcodec_free_frame(AVFrame **frame)