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

Ivan Schreter schreter
Thu Feb 26 22:07:47 CET 2009


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.

Regards,

Ivan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: seek_2_mpegts_pos.patch
Type: text/x-patch
Size: 2587 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090226/5ed3adb2/attachment.bin>



More information about the ffmpeg-devel mailing list