[SCM] libav/experimental: fix image resize

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:39:14 UTC 2013


The following commit has been merged in the experimental branch:
commit 50ee2c4131f1c6be6238a5db5d6b477111005a82
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sat Feb 14 17:20:42 2004 +0000

    fix image resize
    
    Originally committed as revision 2785 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffmpeg.c b/ffmpeg.c
index 6503e11..a8c3a93 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;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list