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

Benoit Fouet benoit.fouet
Fri Feb 27 09:23:49 CET 2009


On 02/27/2009 12:10 AM, M?ns Rullg?rd wrote:
> 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.
>
>   

and who is going to apply mpegts patches ? Baptiste or yourself ?

Ben





More information about the ffmpeg-devel mailing list