[Ffmpeg-devel] Real-time mpegts encoding and streaming

Luca Abeni lucabe72
Fri Mar 2 21:01:12 CET 2007


Hi M?ns,

On Fri, 2007-03-02 at 18:52 +0000, M?ns Rullg?rd wrote:
[...]
> > +                *q++ = val;
> > +            } else if (pts != AV_NOPTS_VALUE) {
> >                  *q++ = 0x80; /* PTS only */
> >                  *q++ = 0x05; /* header len */
> >                  val = (0x02 << 4) |
> 
> This duplicates the PTS writing code.
Right... I thought that way the code was more readable, but I am not
convinced anymore :)
New patch attached.

			Thanks,
				Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set-dts-in-mpegts-1.diff
Type: text/x-patch
Size: 4279 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070302/1eacc5a0/attachment.bin>



More information about the ffmpeg-devel mailing list