1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-25 02:41:50 +02:00

fix continuity counter to start at 0

Originally committed as revision 13641 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-06-03 00:53:33 +00:00
parent 820ad60cd9
commit 3654a16dc9

View 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);