[FFmpeg-soc] [soc]: r2419 - dvbmuxer/mpegpesenc.c

bcoudurier subversion at mplayerhq.hu
Tue Jun 10 00:52:58 CEST 2008


Author: bcoudurier
Date: Tue Jun 10 00:52:57 2008
New Revision: 2419

Log:
forgot another ts case

Modified:
   dvbmuxer/mpegpesenc.c

Modified: dvbmuxer/mpegpesenc.c
==============================================================================
--- dvbmuxer/mpegpesenc.c	(original)
+++ dvbmuxer/mpegpesenc.c	Tue Jun 10 00:52:57 2008
@@ -104,7 +104,7 @@ int ff_pes_write_buf(AVFormatContext *ct
     /* packet header */
     if (stream->format & PES_FMT_MPEG2) {
         header_len = 3;
-        if (stream->packet_number==0)
+        if (stream->format != PES_FMT_TS && stream->packet_number==0)
             header_len += 3; /* PES extension */
         header_len += 1; /* obligatory stuffing byte */
     } else {



More information about the FFmpeg-soc mailing list