diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-03 00:53:33 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-03 00:53:33 +0000 |
commit | 3654a16dc9fee55b491ba4b29d114954d1d00b2f (patch) | |
tree | 69e1f3c874a76e39601909de78e2073b0f589169 /libavformat | |
parent | 820ad60cd950750f2f9437882c4692be299e3e60 (diff) | |
download | ffmpeg-3654a16dc9fee55b491ba4b29d114954d1d00b2f.tar.gz |
fix continuity counter to start at 0
Originally committed as revision 13641 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index b5ba32d2ff..a3cc428900 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -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); |