[FFmpeg-devel] ftp fix seeking beyond file size

Lukasz M lukasz.m.luki at gmail.com
Wed Jun 5 15:57:34 CEST 2013


I attached a patch for review. The aim is to keep ffplay behaviour
when seeking beyond end of file the same as for file protocol.
I checked file protocol implementation and the result lseek is
returned. I made some tests and it returns passed offset value even
when it is greater than file size.
I modified ftp protocol to do the same and it works. Just want to
confirm it is correct solution and not a bug that covers other bug.

When offset was set to real file size and that value was returned then
ffplay kinda hangs.
There is a seek to 0 position done and many reads, but screen doesn't change.

Best Regads,
Lukasz Marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ftp-fix-seeking-beyond-file-size.patch
Type: application/octet-stream
Size: 2047 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130605/b65a6b10/attachment.obj>

More information about the ffmpeg-devel mailing list