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

Pascal Massimino pascal.massimino
Fri Oct 24 18:56:49 CEST 2008


Hi everybody,

On Thu, Oct 23, 2008 at 3:39 PM, M?ns Rullg?rd <mans at mansr.com> wrote:
> "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.

oh! indeed. Let's (hopefully) do the right thing then (attached).

skal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpegts.patch2
Type: application/octet-stream
Size: 842 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081024/be779438/attachment.obj>



More information about the ffmpeg-devel mailing list