[FFmpeg-devel] [PATCH 19/28] changed: check some more url_fseeks in asf demuxer to avoid problems if file system is unseekable

Baptiste Coudurier baptiste.coudurier
Wed Jun 30 22:03:33 CEST 2010


On 06/30/2010 10:45 AM, Joakim Plate wrote:
> Reimar D?ffinger<Reimar.Doeffinger<at>  gmx.de>  writes:
>
>>
>> Subject: [FFmpeg-devel] [PATCH 19/28] changed: check some more
>>          url_fseeks in
>>          asf demuxer to avoid problems if file system is unseekable
>>
>> While probably a good idea in principle, this is the wrong solution
>> for the problem in the subject: is_streamed should be set correctly
>> instead.
>>
>
> [...]
>
> Or the file may have been cut in half for some odd reason, so the point
> you seek to is not available.

That will not cause seek to fail:
        The lseek() function allows the file offset to be set beyond the 
end of the file (but this does not change the size of the file).

The file protocol use lseek. Basically, when dealing with files, seek 
never fail.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list