mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
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>
This commit is contained in:
parent
2ecc5b70fb
commit
c29c2eea8f
2
ffmpeg.c
2
ffmpeg.c
@ -1133,7 +1133,7 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
"Input stream #%d.%d frame changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s\n",
|
"Input stream #%d.%d frame changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s\n",
|
||||||
ist->file_index, ist->index,
|
ist->file_index, ist->index,
|
||||||
ost->resample_width, ost->resample_height, avcodec_get_pix_fmt_name(ost->resample_pix_fmt),
|
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));
|
dec->width , dec->height , avcodec_get_pix_fmt_name(dec->pix_fmt));
|
||||||
if(!ost->video_resample)
|
if(!ost->video_resample)
|
||||||
ffmpeg_exit(1);
|
ffmpeg_exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user