[FFmpeg-cvslog] r13641 - trunk/libavformat/mpegtsenc.c

bcoudurier subversion
Tue Jun 3 02:53:33 CEST 2008


Author: bcoudurier
Date: Tue Jun  3 02:53:33 2008
New Revision: 13641

Log:
fix continuity counter to start at 0

Modified:
   trunk/libavformat/mpegtsenc.c

Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c	(original)
+++ trunk/libavformat/mpegtsenc.c	Tue Jun  3 02:53:33 2008
@@ -61,8 +61,8 @@ static void mpegts_write_section(MpegTSS
             b |= 0x40;
         *q++ = b;
         *q++ = s->pid;
-        s->cc = (s->cc + 1) & 0xf;
         *q++ = 0x10 | s->cc;
+        s->cc = (s->cc + 1) & 0xf;
         if (first)
             *q++ = 0; /* 0 offset */
         len1 = TS_PACKET_SIZE - (q - packet);




More information about the ffmpeg-cvslog mailing list