From 50ee2c4131f1c6be6238a5db5d6b477111005a82 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michaelni@gmx.at> Date: Sat, 14 Feb 2004 17:20:42 +0000 Subject: [PATCH] fix image resize Originally committed as revision 2785 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 6503e11a41..a8c3a93f6f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1271,7 +1271,7 @@ static int av_encode(AVFormatContext **output_files, } else { ost->video_resample = 1; ost->video_crop = 0; // cropping is handled as part of resample - if( avpicture_alloc( &ost->pict_tmp, codec->pix_fmt, + if( avpicture_alloc( &ost->pict_tmp, PIX_FMT_YUV420P, codec->width, codec->height ) ) goto fail; -- 2.18.1