]> git.sesse.net Git - ffmpeg/commitdiff
avconv: remove now unneeded calls to avcodec_get_frame_defaults().
authorAnton Khirnov <anton@khirnov.net>
Tue, 23 Oct 2012 06:32:56 +0000 (08:32 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 24 Oct 2012 06:46:45 +0000 (08:46 +0200)
avconv.c

index 6f6771186a944e147364eda36cc9033571a23054..bf1e2fac4844be5af6d818afe462df5644fc5a04 100644 (file)
--- 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,