[FFmpeg-cvslog] avconv: do not call avcodec_get_frame_defaults()

Anton Khirnov git at videolan.org
Wed Dec 11 23:41:44 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Dec  3 12:00:32 2013 +0100| [674fa49110a661694188a958be13d529b7c8c5dd] | committer: Anton Khirnov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=674fa49110a661694188a958be13d529b7c8c5dd
---

 avconv.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/avconv.c b/avconv.c
index 0cbbcb1..17dc468 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 &&



More information about the ffmpeg-cvslog mailing list