mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avoid seeking to the end, as it confuses some crappy code
Originally committed as revision 2996 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ee76016c79
commit
31290c2b9b
@ -147,7 +147,7 @@ offset_t url_filesize(URLContext *h)
|
|||||||
offset_t pos, size;
|
offset_t pos, size;
|
||||||
|
|
||||||
pos = url_seek(h, 0, SEEK_CUR);
|
pos = url_seek(h, 0, SEEK_CUR);
|
||||||
size = url_seek(h, 0, SEEK_END);
|
size = url_seek(h, -1, SEEK_END)+1;
|
||||||
url_seek(h, pos, SEEK_SET);
|
url_seek(h, pos, SEEK_SET);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user