shithub: sox

Download patch

ref: 123ebf067912343168c6775f0f1a10ee507f29bd
parent: d6b3a9ef2c8997c28ce52b5482bdbdd804a915d5
author: cbagwell <cbagwell>
date: Thu Sep 13 09:45:37 EDT 2007

Using ftell() to match ov_callbacks expectation of returning a long always.

--- a/src/vorbis.c
+++ b/src/vorbis.c
@@ -101,7 +101,7 @@
                 (size_t (*)(void *, size_t, size_t, void *))  fread,
                 (int (*)(void *, ogg_int64_t, int))           _fseeko64_wrap,
                 (int (*)(void *))                             myclose,
-                (off_t (*)(void *))                            ftello
+                (long (*)(void *))                            ftell
         };
 
         /* Allocate space for decoding structure */