Commit e07ccf03 authored by bcoudurier's avatar bcoudurier

fix continuity counter to start at 0

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13641 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent afc8882b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment