fix continuity counter to start at 0
Originally committed as revision 13641 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
820ad60cd9
commit
3654a16dc9
@ -61,8 +61,8 @@ static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
|
|||||||
b |= 0x40;
|
b |= 0x40;
|
||||||
*q++ = b;
|
*q++ = b;
|
||||||
*q++ = s->pid;
|
*q++ = s->pid;
|
||||||
s->cc = (s->cc + 1) & 0xf;
|
|
||||||
*q++ = 0x10 | s->cc;
|
*q++ = 0x10 | s->cc;
|
||||||
|
s->cc = (s->cc + 1) & 0xf;
|
||||||
if (first)
|
if (first)
|
||||||
*q++ = 0; /* 0 offset */
|
*q++ = 0; /* 0 offset */
|
||||||
len1 = TS_PACKET_SIZE - (q - packet);
|
len1 = TS_PACKET_SIZE - (q - packet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user