[SCM] libav/experimental: Fix start_frame(), which was issuing chroma artifacts with planar formats with more than 8 bits per pixel (e.g. YUVXXXP16).

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:54:12 UTC 2013


The following commit has been merged in the experimental branch:
commit ac74dfa436b5f13394db8adc3b2c376646f752bc
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Sun Nov 8 22:47:10 2009 +0000

    Fix start_frame(), which was issuing chroma artifacts with planar
    formats with more than 8 bits per pixel (e.g. YUVXXXP16).
    
    Originally committed as revision 20479 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 45415e1..0ff5f76 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -180,7 +180,7 @@ static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
         for (i = 1; i < 3; i ++) {
             if (ref2->data[i]) {
                 ref2->data[i] += (crop->y >> crop->vsub) * ref2->linesize[i];
-                ref2->data[i] +=  crop->x >> crop->hsub;
+                ref2->data[i] += ((crop->x * crop->bpp) >> 3) >> crop->hsub;
             }
         }
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list