]> git.sesse.net Git - vlc/commitdiff
* copy: don't break the length for subtitle packet.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 28 May 2004 19:55:01 +0000 (19:55 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 28 May 2004 19:55:01 +0000 (19:55 +0000)
modules/packetizer/copy.c

index 24b8465681cbc34487eee80cdd500567a80b5b2b..1c62ffdb1884893a2f7ac837245ec4cb4ef280be 100644 (file)
@@ -267,7 +267,8 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
         return NULL;
     }
 
-    if( p_ret != NULL && p_block->i_pts > p_ret->i_pts )
+    if( p_dec->fmt_in.i_cat != SPU_ES &&
+        p_ret != NULL && p_block->i_pts > p_ret->i_pts )
     {
         p_ret->i_length = p_block->i_pts - p_ret->i_pts;
     }