ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippet
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 16 Apr 2011 23:38:09 +0000 (01:38 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 19 Apr 2011 10:23:59 +0000 (12:23 +0200)
Simplify, ease readability.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
ffmpeg.c

index f134f88..e86e22f 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1195,8 +1195,8 @@ static void do_video_out(AVFormatContext *s,
         av_log(NULL, AV_LOG_INFO,
                "Input stream #%d.%d frame changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s\n",
                ist->file_index, ist->index,
-               ost->resample_width  , ost->resample_height  , avcodec_get_pix_fmt_name(ost->resample_pix_fmt),
-               ist->st->codec->width, ist->st->codec->height, avcodec_get_pix_fmt_name(ist->st->codec->pix_fmt));
+               ost->resample_width, ost->resample_height, avcodec_get_pix_fmt_name(ost->resample_pix_fmt),
+               dec->width         , dec->height         , avcodec_get_pix_fmt_name(dec->pix_fmt));
         if(!ost->video_resample)
             ffmpeg_exit(1);
     }