[FFmpeg-devel] [PATCH] Fix MPEG-TS seek and frame positions in general
Måns Rullgård
mans
Fri Feb 27 00:10:20 CET 2009
Baptiste Coudurier <baptiste.coudurier at gmail.com> writes:
> Ivan Schreter wrote:
>> Baptiste Coudurier wrote:
>>> Ivan Schreter wrote:
>>>
>>>> [...]
>>>> ------------------------------------------------------------------------
>>>>
>>>> Index: libavformat/mpegts.c
>>>> ===================================================================
>>>> --- libavformat/mpegts.c (revision 17012)
>>>> +++ libavformat/mpegts.c (working copy)
>>>> @@ -48,7 +48,7 @@
>>>>
>>>> typedef struct MpegTSFilter MpegTSFilter;
>>>>
>>>> -typedef void PESCallback(MpegTSFilter *f, const uint8_t *buf, int
>>>> len, int is_start);
>>>> +typedef void PESCallback(MpegTSFilter *f, const uint8_t *buf, int
>>>> len, int is_start, int64_t pos);
>>>>
>>>> typedef struct MpegTSPESFilter {
>>>> PESCallback *pes_cb;
>>>> @@ -147,6 +147,7 @@
>>>> int total_size;
>>>> int pes_header_size;
>>>> int64_t pts, dts;
>>>> + int64_t stream_pos; /**< position of first TS packet of this PES
>>>> packet */
>>>> uint8_t header[MAX_PES_HEADER_SIZE];
>>>> };
>>>>
>>>>
>>>
>>> Maybe ts_packet_pos ?
>>>
>>
>> Changed. New patch attached.
>>
>
> Patch looks ok.
I have authorised Baptiste to approve mpegts patches.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list