[FFmpeg-devel] [PATCH] Simplify: use local variable with same contents directly.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Feb 12 11:50:32 CET 2012


Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index b9783b5..ab0081f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2511,7 +2511,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;
-- 
1.7.9



More information about the ffmpeg-devel mailing list