ffmpeg: reformat resample condition code in transcode()
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
9aa797cd28
commit
2b95602e93
4
ffmpeg.c
4
ffmpeg.c
@ -2171,9 +2171,9 @@ static int transcode(AVFormatContext **output_files,
|
|||||||
fprintf(stderr, "Video pixel format is unknown, stream cannot be encoded\n");
|
fprintf(stderr, "Video pixel format is unknown, stream cannot be encoded\n");
|
||||||
ffmpeg_exit(1);
|
ffmpeg_exit(1);
|
||||||
}
|
}
|
||||||
ost->video_resample = (codec->width != icodec->width ||
|
ost->video_resample = codec->width != icodec->width ||
|
||||||
codec->height != icodec->height ||
|
codec->height != icodec->height ||
|
||||||
(codec->pix_fmt != icodec->pix_fmt));
|
codec->pix_fmt != icodec->pix_fmt;
|
||||||
if (ost->video_resample) {
|
if (ost->video_resample) {
|
||||||
#if !CONFIG_AVFILTER
|
#if !CONFIG_AVFILTER
|
||||||
avcodec_get_frame_defaults(&ost->pict_tmp);
|
avcodec_get_frame_defaults(&ost->pict_tmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user