diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-12 08:56:29 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-12 08:56:29 +0200 |
commit | 5778466e926e402bfd923b4f226413a921aa3c96 (patch) | |
tree | 3225f0c9f0e9893804e275a6f50552ee11c3b863 | |
parent | 4e54848bd17d1956e514b0be7a3e672d8a7f7b54 (diff) | |
download | ffmpeg-5778466e926e402bfd923b4f226413a921aa3c96.tar.gz |
Support CODEC_ID_PCM_S24* output via alsa (stereo only).
-rw-r--r-- | libavdevice/alsa-audio-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index 46ac162711..7ada466833 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -40,6 +40,8 @@ static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id) case CODEC_ID_PCM_F32BE: return SND_PCM_FORMAT_FLOAT_BE; case CODEC_ID_PCM_S32LE: return SND_PCM_FORMAT_S32_LE; case CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE; + case CODEC_ID_PCM_S24LE: return SND_PCM_FORMAT_S24_3LE; + case CODEC_ID_PCM_S24BE: return SND_PCM_FORMAT_S24_3BE; case CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE; case CODEC_ID_PCM_S16BE: return SND_PCM_FORMAT_S16_BE; case CODEC_ID_PCM_S8: return SND_PCM_FORMAT_S8; |