Skip to content

Commit b8a668e

Browse files
committed
don't let xvid height calculation be an odd number
1 parent 7affbc1 commit b8a668e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trunk/export/XviD.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/perl -w
2-
#Last Updated: 2004.09.26 (xris)
2+
#Last Updated: 2004.11.02 (xris)
33
#
44
# export::XviD
55
# Maintained by Chris Petersen <mythtv@forevermore.net>
@@ -129,6 +129,7 @@ package export::XviD;
129129
# Height will default to whatever is the appropriate aspect ratio for the width
130130
# someday, we should check the aspect ratio here, too...
131131
$self->{'height'} = sprintf('%.0f', $self->{'width'} * 3/4);
132+
$self->{'height'}++ if ($self->{'height'} % 2);
132133
# Ask about the height
133134
if ($Args{'height'}) {
134135
die "Height must be > 0\n" unless ($Args{'height'} > 0);

0 commit comments

Comments
 (0)