[FFmpeg-devel] [PATCH] fix continuity counter to start at 0
Måns Rullgård
mans
Tue Jun 3 02:51:01 CEST 2008
Baptiste Coudurier <baptiste.coudurier at smartjog.com> writes:
> Hi,
>
> $subject.
>
> --
> Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
> Smartjog USA Inc. http://www.smartjog.com
> Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
>
> Index: libavformat/mpegtsenc.c
> ===================================================================
> --- libavformat/mpegtsenc.c (revision 13635)
> +++ libavformat/mpegtsenc.c (working copy)
> @@ -61,8 +61,8 @@
> b |= 0x40;
> *q++ = b;
> *q++ = s->pid;
> + *q++ = 0x10 | s->cc;
> s->cc = (s->cc + 1) & 0xf;
> - *q++ = 0x10 | s->cc;
> if (first)
> *q++ = 0; /* 0 offset */
> len1 = TS_PACKET_SIZE - (q - packet);
Not that it matters at all where the counter starts, but patch ok.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list