[Ffmpeg-devel] [PATCH] RTP/Get Duration of file (for seeking in stream)

Ryan Martell rdm4
Mon Nov 6 21:06:34 CET 2006


On Nov 6, 2006, at 12:22 PM, Michael Niedermayer wrote:

> Hi
>
> On Mon, Nov 06, 2006 at 11:39:27AM -0600, Ryan Martell wrote:
>> Hi--
>>
>> Attached is a patch to rtsp.c that will fill in the start and
>> duration of a movie (if known) from the sdp so that the seeking
>> function of rtsp will work.
>>
>> Thanks!
>> -Ryan
>
> duration should be under if(end != AV_NOPTS_VALUE) otherwise it could
> end up with a weird value
>
> and ideally rtsp_parse_range_npt() should be moved in a seperate  
> patch&commit
> but iam ok with it in the same patch too, its small and fairly  
> readable

I had to move it because i the new invocation of it is higher in the  
source file; otherwise I would have left it where it was & changed  
parameters. ;-)

Here's the refix:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061106/8f9b535f/attachment.txt>
-------------- next part --------------

-Ryan



More information about the ffmpeg-devel mailing list