mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00: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:
parent
820ad60cd9
commit
3654a16dc9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user