Fix compilation breakage introduced in r2891.

Originally committed to SVN as r2892.
This commit is contained in:
Karl Blomster 2009-05-02 20:06:06 +00:00
parent 04e4249219
commit 0a4190ca98
1 changed files with 4 additions and 4 deletions

View File

@ -571,10 +571,10 @@ int StdIoProgress(InputStream *_st, ulonglong cur, ulonglong max) {
longlong StdIoGetFileSize(InputStream *_st) {
MkvStdIO *st = (MkvStdIO *) _st;
longlong epos = 0;
longlong cpos = _ftelli64(st->fp);
_fseeki64(st->fp, 0, SEEK_END);
epos = _ftelli64(st->fp);
_fseeki64(st->fp, cpos, SEEK_SET);
longlong cpos = std_ftell(st->fp);
std_fseek(st->fp, 0, SEEK_END);
epos = std_ftell(st->fp);
std_fseek(st->fp, cpos, SEEK_SET);
return epos;
}