]> git.sesse.net Git - vlc/commitdiff
* modules/codec/dvbsub.c: bug fix in the encoder.
authorGildas Bazin <gbazin@videolan.org>
Fri, 8 Oct 2004 15:53:26 +0000 (15:53 +0000)
committerGildas Bazin <gbazin@videolan.org>
Fri, 8 Oct 2004 15:53:26 +0000 (15:53 +0000)
modules/codec/dvbsub.c

index b0fd1bcc251cb7417fefc110770d9f951a0cf60c..613d2a482a75611fd3e21923fc97596cee6c48dc 100644 (file)
@@ -1656,7 +1656,7 @@ static void encode_object( encoder_t *p_enc, bs_t *s, subpicture_t *p_subpic )
         if( bs_pos( s ) % 16 ) bs_write( s, 8, 0 );
 
         /* Update segment length */
-        SetWBE( &s->p_start[i_length_pos/8], (bs_pos(s) - i_length_pos -2)/8 );
+        SetWBE( &s->p_start[i_length_pos/8], (bs_pos(s) - i_length_pos)/8 -2 );
     }
 }