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

j at svn.xiph.org j at svn.xiph.org
Wed Jan 20 16:36:05 PST 2010


Author: j
Date: 2010-01-20 16:36:05 -0800 (Wed, 20 Jan 2010)
New Revision: 16792

Modified:
   trunk/ffmpeg2theora/src/ffmpeg2theora.c
Log:
do not overwrite aspect ratio with colorspace, fixes #1634

Modified: trunk/ffmpeg2theora/src/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/src/ffmpeg2theora.c	2010-01-20 02:24:40 UTC (rev 16791)
+++ trunk/ffmpeg2theora/src/ffmpeg2theora.c	2010-01-21 00:36:05 UTC (rev 16792)
@@ -1071,14 +1071,14 @@
             info.ti.fps_numerator = this->framerate.num;
             info.ti.fps_denominator = this->framerate.den;
             /* this is pixel aspect ratio */
-            if(this->aspect_numerator==1 && this->aspect_denominator ==1) {
+            if(this->aspect_numerator==1 && this->aspect_denominator==1) {
                 this->aspect_numerator = 0;
                 this->aspect_denominator = 0;
             }
             info.ti.aspect_numerator = this->aspect_numerator;
             info.ti.aspect_denominator = this->aspect_denominator;
 
-            info.ti.aspect_denominator=this->colorspace;
+            info.ti.colorspace = this->colorspace;
 
             /*Account for the Ogg page overhead.
               This is 1 byte per 255 for lacing values, plus 26 bytes per 4096 bytes for



More information about the commits mailing list