diff src/ffmpeg/libavformat/file.c @ 847:11278fe4764b trunk

[svn] - if (result >= 0) return the result of ftell, otherwise return -1.
author nenolod
date Tue, 13 Mar 2007 06:17:24 -0700
parents 2eaaa3aa182b
children
line wrap: on
line diff
--- a/src/ffmpeg/libavformat/file.c	Tue Mar 13 05:21:50 2007 -0700
+++ b/src/ffmpeg/libavformat/file.c	Tue Mar 13 06:17:24 2007 -0700
@@ -64,7 +64,7 @@
     VFSFile *file;
     file = h->priv_data;
     result = vfs_fseek(file, pos, whence);
-    if (result == 0)
+    if (result >= 0)
 	result = vfs_ftell(file);
     else
         result = -1;