From 674fa49110a661694188a958be13d529b7c8c5dd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 3 Dec 2013 12:00:32 +0100 Subject: [PATCH] avconv: do not call avcodec_get_frame_defaults() Strictly speaking it is not correct to call it on refcounted frames, in any case it is unnecessary, since filtered_frame is always unreferenced after poll_filter() returns. --- avconv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/avconv.c b/avconv.c index 0cbbcb1ff2..17dc468f6b 100644 --- a/avconv.c +++ b/avconv.c @@ -642,8 +642,7 @@ static int poll_filter(OutputStream *ost) if (!ost->filtered_frame && !(ost->filtered_frame = av_frame_alloc())) { return AVERROR(ENOMEM); - } else - avcodec_get_frame_defaults(ost->filtered_frame); + } filtered_frame = ost->filtered_frame; if (ost->enc->type == AVMEDIA_TYPE_AUDIO &&