OSDN Git Service

Simplify: use local variable with same contents directly.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 12 Feb 2012 10:50:01 +0000 (11:50 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 12 Feb 2012 17:56:07 +0000 (18:56 +0100)
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
ffmpeg.c

index 22f8fa9..f3683a5 100644 (file)
--- 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;