ffmpeg: remove pointless avcodec_get_frame_defaults().
authorClément Bœsch <ubitux@gmail.com>
Mon, 13 Feb 2012 22:23:15 +0000 (23:23 +0100)
committerClément Bœsch <ubitux@gmail.com>
Mon, 13 Feb 2012 22:32:39 +0000 (23:32 +0100)
filtered_frame is overwritten just below anyway.

ffmpeg.c

index 03bcccd..0cb9ba1 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2139,7 +2139,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
                 ret = AVERROR(ENOMEM);
                 goto end;
             }
-            avcodec_get_frame_defaults(ist->filtered_frame);
             filtered_frame = ist->filtered_frame;
             *filtered_frame= *decoded_frame; //for me_threshold
             if (ost->picref) {