diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-04-23 15:30:50 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-02-20 09:18:29 +0100 |
commit | 0bbe5ac82ef2845efafbf190044f16712db113b2 (patch) | |
tree | ac8745fba01c8a3e902e886f46f90ad56576559f /src/decoder_internal.c | |
parent | c69c8ffa9ec55c94dee7ce69af26b4edbd61647e (diff) |
Switch to Libav sample formats everywhere.
Drop 24bit format for now. It should be restored later by properly
distinguishing between internal and packed formats.
Diffstat (limited to 'src/decoder_internal.c')
-rw-r--r-- | src/decoder_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_internal.c b/src/decoder_internal.c index 5078591b..cd8f03c1 100644 --- a/src/decoder_internal.c +++ b/src/decoder_internal.c @@ -56,7 +56,7 @@ struct music_chunk *decoder_get_chunk(struct decoder *decoder) assert(decoder != NULL); do { - if (music_pipe_size(dc->pipe) >= dc->buffer_samples) { + if (music_pipe_size(dc->pipe) <= dc->buffer_samples) { chunk = music_chunk_alloc(); if (!chunk) return NULL; |