]> git.sesse.net Git - mlt/commitdiff
fix color problem with libav (3483629)
authorDan Dennedy <dan@dennedy.org>
Sun, 5 Feb 2012 09:30:54 +0000 (01:30 -0800)
committerDan Dennedy <dan@dennedy.org>
Sun, 5 Feb 2012 09:30:54 +0000 (01:30 -0800)
src/modules/avformat/consumer_avformat.c
src/modules/avformat/filter_avcolour_space.c
src/modules/avformat/producer_avformat.c

index 85d62d5edfa3f8e0aaf88b75172a18971733cc3b..9b70cebee0e7fa07ef38c67bab09d04f877b46c6 100644 (file)
@@ -1701,7 +1701,7 @@ static void *consumer_thread( void *arg )
 
                                                // Do the colour space conversion
 #ifdef SWSCALE
-                                               int flags = SWS_BILINEAR;
+                                               int flags = SWS_BICUBIC;
 #ifdef USE_MMX
                                                flags |= SWS_CPU_CAPS_MMX;
 #endif
index 6396f887c10ad70e016c090d9124f75eaaa7b7e1..f812146a2162e114e1a65197ea46dd244d5e0023 100644 (file)
@@ -117,7 +117,7 @@ static void av_convert_image( uint8_t *out, uint8_t *in, int out_fmt, int in_fmt
        AVPicture input;
        AVPicture output;
 #ifdef SWSCALE
-       int flags = SWS_BILINEAR | SWS_ACCURATE_RND;
+       int flags = SWS_BICUBIC | SWS_ACCURATE_RND;
 
        if ( out_fmt == PIX_FMT_YUYV422 )
                flags |= SWS_FULL_CHR_H_INP;
index 103fcae5992271398de222b851d4ed7ad9456c26..87b87afa8736e2a03fb33e713369a228e29c86aa 100644 (file)
@@ -1247,7 +1247,7 @@ static void convert_image( AVFrame *frame, uint8_t *buffer, int pix_fmt,
 {
 #ifdef SWSCALE
        int full_range = -1;
-       int flags = SWS_BILINEAR | SWS_ACCURATE_RND;
+       int flags = SWS_BICUBIC | SWS_ACCURATE_RND;
 
 #ifdef USE_MMX
        flags |= SWS_CPU_CAPS_MMX;