Support CODEC_ID_PCM_S24* output via alsa (stereo only).

This commit is contained in:
Carl Eugen Hoyos 2011-04-12 08:56:29 +02:00
parent 4e54848bd1
commit 5778466e92
1 changed files with 2 additions and 0 deletions

View File

@ -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;