[FFmpeg-devel] [PATCH 2/3] ffmpeg: remove pointless avcodec_get_frame_defaults().

Clément Bœsch ubitux at gmail.com
Mon Feb 13 23:32:48 CET 2012


filtered_frame is overwritten just below anyway.
---
 ffmpeg.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 03bcccd..0cb9ba1 100644
--- 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) {
-- 
1.7.9



More information about the ffmpeg-devel mailing list