aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_api.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-23 15:30:50 +0200
committerAnton Khirnov <anton@khirnov.net>2015-02-20 09:18:29 +0100
commit0bbe5ac82ef2845efafbf190044f16712db113b2 (patch)
treeac8745fba01c8a3e902e886f46f90ad56576559f /src/decoder_api.c
parentc69c8ffa9ec55c94dee7ce69af26b4edbd61647e (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_api.c')
-rw-r--r--src/decoder_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 939e4470..662b9d8e 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -398,6 +398,9 @@ enum decoder_command decoder_data(struct decoder *decoder,
chunk->frame = frame;
chunk->bit_rate = kbit_rate;
chunk->times = decoder->timestamp - dc->song->start_ms / 1000.0;
+#ifndef NDEBUG
+ chunk->audio_format = dc->out_audio_format;
+#endif
frame = NULL;