summaryrefslogtreecommitdiff
path: root/spuencoder.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-29 17:21:00 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-29 17:21:00 +0200
commitd20955f24a60b4a94532e6260188428e38472600 (patch)
tree30ff76eb367440c1e8a8dc2880bda5df8fe39f0e /spuencoder.c
parentd79f880ef6f91614d2257c5bef158678ea9a387f (diff)
downloadvdr-plugin-dxr3-d20955f24a60b4a94532e6260188428e38472600.tar.gz
vdr-plugin-dxr3-d20955f24a60b4a94532e6260188428e38472600.tar.bz2
change the way we write color informations
Diffstat (limited to 'spuencoder.c')
-rw-r--r--spuencoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/spuencoder.c b/spuencoder.c
index a78424d..372207f 100644
--- a/spuencoder.c
+++ b/spuencoder.c
@@ -313,12 +313,12 @@ void cSpuEncoder::generateSpuData(bool topAndBottom) throw (char const* )
spu[written++] = bottomStart >> 8;
spu[written++] = bottomStart & 0xff;
- // write color-> palette index and alpha data for the first region
- writeColorAndAlpha(regions.front()->section(0), true);
-
// write informations for other regions
if (regions.size() > 1) {
writeRegionInformation();
+ } else {
+ // write color-> palette index and alpha data for the first region
+ writeColorAndAlpha(regions.front()->section(0), true);
}
// 0xff: end sequence