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

Luca Abeni lucabe72
Fri Mar 2 22:18:45 CET 2007


Hi M?ns,

On Fri, 2007-03-02 at 20:33 +0000, M?ns Rullg?rd wrote:
[...]
> Why not something like this:
> 
>     header_len = 3;
>     flags = 0;
>     if(pts != AV_NOPTS_VALUE){
>         header_len += 5;
>         flags |= 0x80;
>     }
>     if(dts != AV_NOPTS_VALUE){
>         header_len += 5;
>         flags |= 0x40;
>     }
>     *q++ = flags;
>     *q++ = header_len;
>     /* maybe write pts */
>     /* maybe write dts */
Ok, I had to change the file a little bit more, but now it looks
better. 


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



More information about the ffmpeg-devel mailing list