[FFmpeg-devel] set pkt->pos in mpegts demuxer

Måns Rullgård mans
Fri Oct 24 00:39:34 CEST 2008


"Pascal Massimino" <pascal.massimino at gmail.com> writes:

> hi everybody,
>
> cf $title
>
> skal
>
> --- libavformat/mpegts.c	2008-10-23 15:08:01.940229000 -0700
> +++ libavformat/mpegts.c	2008-10-23 15:08:01.944225000 -0700
> @@ -915,6 +915,7 @@
>                      pkt->stream_index = pes->st->index;
>                      pkt->pts = pes->pts;
>                      pkt->dts = pes->dts;
> +                    pkt->pos = url_ftell(ts->stream->pb);
>                      /* reset pts values */
>                      pes->pts = AV_NOPTS_VALUE;
>                      pes->dts = AV_NOPTS_VALUE;

That will be pointing to the next packet.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list