Unified · Split
| @@ -72,7 +72,7 @@ static size_t callback_read(void* ptr, size_t size, size_t nmemb, void* ft_data) · 71 unmodified lines | |||
| 72 | static int callback_seek(void* ft_data, ogg_int64_t off, int whence) | 72 | static int callback_seek(void* ft_data, ogg_int64_t off, int whence) |
| 73 | { | 73 | { |
| 74 | sox_format_t* ft = (sox_format_t*)ft_data; | 74 | sox_format_t* ft = (sox_format_t*)ft_data; |
| 75 | int ret = ft->seekable ? lsx_seeki(ft, off, whence) : -1; | 75 | int ret = ft->seekable ? lsx_seeki(ft, (off_t)off, whence) : -1; |
| 76 | 76 | ||
| 77 | if (ret == EBADF) | 77 | if (ret == EBADF) |
| 78 | ret = -1; | 78 | ret = -1; |