[FFmpeg-devel] [PATCH] Fix MPEG-TS seek and frame positions in general

Baptiste Coudurier baptiste.coudurier
Thu Feb 26 23:22:08 CET 2009


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.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-devel mailing list