]> git.sesse.net Git - vlc/commitdiff
fix possition of dvbsubs when input has p_subpic->i_x/i_y != 0
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 3 Mar 2007 13:09:52 +0000 (13:09 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 3 Mar 2007 13:09:52 +0000 (13:09 +0000)
modules/codec/dvbsub.c

index 50bd066dc25462fc114d3aadbc0b3b6f25402a59..43f370433092c9f583b85e3124c06a713e84b196 100644 (file)
@@ -2058,8 +2058,8 @@ static void encode_page_composition( encoder_t *p_enc, bs_t *s,
         }
         else
         {
-            bs_write( s, 16, p_region->i_x );
-            bs_write( s, 16, p_region->i_y );
+            bs_write( s, 16, p_subpic->i_x + p_region->i_x );
+            bs_write( s, 16, p_subpic->i_y + p_region->i_y );
         }
     }
 }