提交 31290c2b 编写于 作者: M Michael Niedermayer

avoid seeking to the end, as it confuses some crappy code

Originally committed as revision 2996 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 ee76016c
......@@ -147,7 +147,7 @@ offset_t url_filesize(URLContext *h)
offset_t pos, size;
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);
return size;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册