From: Michael Niedermayer <[email protected]>

This variable is assigned the return value of ftello, which
returns an off_t which is a signed type. On errors, ftello returns
-1, thus make sure this error return value can be stored properly.
---
 tools/qt-faststart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index 0a3fd59..dfc38ad 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
     uint64_t i, j;
     uint32_t offset_count;
     uint64_t current_offset;
-    uint64_t start_offset = 0;
+    int64_t start_offset = 0;
     unsigned char copy_buffer[COPY_BUFFER_SIZE];
     int bytes_to_copy;
 
-- 
1.8.3.4 (Apple Git-47)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to