Skip to content

Commit

Permalink
sndfile: libsndfile uses SF_COUNT_MAX, not -1, for unknown file size.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlindgren90 committed Mar 9, 2015
1 parent b31fce4 commit 1e97505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sndfile/plugin.cc
Expand Up @@ -59,7 +59,8 @@ EXPORT SndfilePlugin aud_plugin_instance;
static sf_count_t
sf_get_filelen (void *user_data)
{
return ((VFSFile *) user_data)->fsize ();
int64_t size = ((VFSFile *) user_data)->fsize ();
return (size < 0) ? SF_COUNT_MAX : size;
}

static sf_count_t
Expand Down

0 comments on commit 1e97505

Please sign in to comment.