[xiph-commits] r12386 - trunk/xiph-qt/OggImport/src
arek at svn.xiph.org
arek at svn.xiph.org
Sat Jan 27 09:36:22 PST 2007
Author: arek
Date: 2007-01-27 09:36:19 -0800 (Sat, 27 Jan 2007)
New Revision: 12386
Modified:
trunk/xiph-qt/OggImport/src/stream_theora.c
Log:
Added checking of Theora's aspect ratio denominator in importer.
Modified: trunk/xiph-qt/OggImport/src/stream_theora.c
===================================================================
--- trunk/xiph-qt/OggImport/src/stream_theora.c 2007-01-25 23:06:43 UTC (rev 12385)
+++ trunk/xiph-qt/OggImport/src/stream_theora.c 2007-01-27 17:36:19 UTC (rev 12386)
@@ -182,7 +182,7 @@
UInt32 frame_width = si->si_theora.ti.pic_width;
UInt32 frame_width_fraction = 0;
- if (si->si_theora.ti.aspect_numerator != si->si_theora.ti.aspect_denominator) {
+ if (si->si_theora.ti.aspect_denominator != 0 && si->si_theora.ti.aspect_numerator != si->si_theora.ti.aspect_denominator) {
frame_width_fraction = (frame_width * si->si_theora.ti.aspect_numerator % si->si_theora.ti.aspect_denominator) * 0x10000 / si->si_theora.ti.aspect_denominator;
frame_width = frame_width * si->si_theora.ti.aspect_numerator / si->si_theora.ti.aspect_denominator;
}
More information about the commits
mailing list