From 1c253bc91fa87e7ae4ec1fa8447c4a3754e341fc Mon Sep 17 00:00:00 2001
From: Greg Frost <gregfrost1@bigpond.com>
Date: Sat, 24 Apr 2010 15:05:18 +0930
Subject: test-pattern: aspect ratio support for interlaced video

---
 abs/core-testing/test-pattern/PKGBUILD          | 4 ++--
 abs/core-testing/test-pattern/test_pattern.bash | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/abs/core-testing/test-pattern/PKGBUILD b/abs/core-testing/test-pattern/PKGBUILD
index 4b71f68..7ac825b 100644
--- a/abs/core-testing/test-pattern/PKGBUILD
+++ b/abs/core-testing/test-pattern/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=test-pattern
 pkgver=1.0
-pkgrel=5
+pkgrel=6
 arch=('i686')
 pkgdesc="script to create test pattern videos"
 depends=(imagemagick)
@@ -13,4 +13,4 @@ build() {
   install -m755 -D test_pattern.bash $startdir/pkg/usr/bin/test_pattern.bash
 }
 
-md5sums=('0bcfa657a2b5f31c62a37738016beb1f')
+md5sums=('3a427a5dee0763c6b0a5938fedbde883')
diff --git a/abs/core-testing/test-pattern/test_pattern.bash b/abs/core-testing/test-pattern/test_pattern.bash
index 76db158..d220fb0 100755
--- a/abs/core-testing/test-pattern/test_pattern.bash
+++ b/abs/core-testing/test-pattern/test_pattern.bash
@@ -313,10 +313,12 @@ fi
 
 if [ -n "$interlaced" ] ; then
   ffmpeg -r ${rate} -i ${TEMPDIR}/interlaced%03d.png -r ${rate} \
-    -vcodec mpeg2video -flags +ilme+ildct ${bitrate_flags} -y test.mpg
+    -vcodec mpeg2video -flags +ilme+ildct -aspect $aspect_ratio \
+    ${bitrate_flags} -y test.mpg
 else
   ffmpeg -r ${rate} -i ${TEMPDIR}/test%03d.png -r ${rate} \
-    -vcodec mpeg2video -aspect $aspect_ratio ${bitrate_flags} -y test.mpg
+    -vcodec mpeg2video -aspect $aspect_ratio \
+    ${bitrate_flags} -y test.mpg
 fi
 
 if [ -n "$remove_tempdir" ] ; then
-- 
cgit v0.12