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/encoder/twolame_encoder.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/encoder/twolame_encoder.c')
-rw-r--r-- | src/encoder/twolame_encoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/encoder/twolame_encoder.c b/src/encoder/twolame_encoder.c index 934b2ab2..cdbe1f1b 100644 --- a/src/encoder/twolame_encoder.c +++ b/src/encoder/twolame_encoder.c @@ -26,6 +26,8 @@ #include <assert.h> #include <string.h> +#include <libavutil/samplefmt.h> + struct twolame_encoder { struct encoder encoder; @@ -192,7 +194,7 @@ twolame_encoder_open(struct encoder *_encoder, struct audio_format *audio_format { struct twolame_encoder *encoder = (struct twolame_encoder *)_encoder; - audio_format->format = SAMPLE_FORMAT_S16; + audio_format->format = AV_SAMPLE_FMT_S16; audio_format->channels = 2; encoder->audio_format = *audio_format; |