[xiph-commits] r15951 - trunk/ffmpeg2theora/src

j at svn.xiph.org j at svn.xiph.org
Fri Apr 24 02:51:09 PDT 2009


Author: j
Date: 2009-04-24 02:51:08 -0700 (Fri, 24 Apr 2009)
New Revision: 15951

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
revert last commit, leads to random noise in first line for some videos

Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-04-24 09:29:47 UTC (rev 15950)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2009-04-24 09:51:08 UTC (rev 15951)
@@ -291,14 +291,6 @@
     yuv->u = frame->data[1];
     yuv->v = frame->data[2];
 
-    // Scale YUV components to the full range 0-255,
-    // instead of 16-235 for Y and 16-240 for UV.
-    for (i = 0; i < 256; i++) {
-        yuv->y[i] = (yuv->y[i] - 16) * 255 / 219;
-        yuv->u[i] = (yuv->u[i] - 128) * 255 / 224 + 128;
-        yuv->v[i] = (yuv->v[i] - 128) * 255 / 224 + 128;
-    }
-
     if (this->y_lut_used) {
         lut_apply(this->y_lut, yuv->y, yuv->y, yuv->y_width, yuv->y_height, yuv->y_stride);
     }



More information about the commits mailing list