[FFmpeg-cvslog] avconv: remove now unneeded calls to avcodec_get_frame_defaults().

Anton Khirnov git at videolan.org
Wed Oct 24 14:43:38 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Oct 23 08:32:56 2012 +0200| [8e84f2055c4170e502d36db3539b5e243a5b6cca] | committer: Anton Khirnov

avconv: remove now unneeded calls to avcodec_get_frame_defaults().

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

 avconv.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/avconv.c b/avconv.c
index 6f67711..bf1e2fa 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1079,8 +1079,6 @@ static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
 
     if (!ist->decoded_frame && !(ist->decoded_frame = avcodec_alloc_frame()))
         return AVERROR(ENOMEM);
-    else
-        avcodec_get_frame_defaults(ist->decoded_frame);
     decoded_frame = ist->decoded_frame;
 
     ret = avcodec_decode_audio4(avctx, decoded_frame, got_output, pkt);
@@ -1220,8 +1218,6 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
 
     if (!ist->decoded_frame && !(ist->decoded_frame = avcodec_alloc_frame()))
         return AVERROR(ENOMEM);
-    else
-        avcodec_get_frame_defaults(ist->decoded_frame);
     decoded_frame = ist->decoded_frame;
 
     ret = avcodec_decode_video2(ist->st->codec,



More information about the ffmpeg-cvslog mailing list