From c15f3bd3dba9b17ba03606e32ec900c3821fcd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 12 Feb 2012 11:50:01 +0100 Subject: [PATCH] Simplify: use local variable with same contents directly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 22f8fa9ca1..f3683a553f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2513,7 +2513,7 @@ static int transcode_init(OutputFile *output_files, int nb_output_files, } } else { if (!ost->enc) - ost->enc = avcodec_find_encoder(ost->st->codec->codec_id); + ost->enc = avcodec_find_encoder(codec->codec_id); ist->decoding_needed = 1; ost->encoding_needed = 1;