Commit 675c00f5 authored by michael's avatar michael

fix image resize


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2785 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 22d16ad1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment