summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-17 01:38:09 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-11 07:32:37 +0200
commitc29c2eea8fb35682fdfdcb64c4890e8a25137b2a (patch)
treed21901970c5a3865b6452faeb770bb8986fe665e /ffmpeg.c
parent2ecc5b70fb53d0e2e74b51d1d598af8c842afc68 (diff)
ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippet
Simplify, ease readability. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 89755863e4..a5d877a022 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1132,8 +1132,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);
}