]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
fix continuity counter to start at 0
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 3 Jun 2008 00:53:33 +0000 (00:53 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 3 Jun 2008 00:53:33 +0000 (00:53 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13641 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mpegtsenc.c

index b5ba32d2ff2b7c2d8b6b8e32f6a85c2e655e9800..a3cc4289006da70b9e8c48ccb769f968600f8458 100644 (file)
@@ -61,8 +61,8 @@ static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
             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);