diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-14 01:00:26 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-14 03:33:10 +0200 |
commit | 075a55603fe8cfefad86be65048368e411bf5a33 (patch) | |
tree | 6a9f617c3b6e145170bfec49461ef1bc7cc08816 /libavdevice/alsa-audio-common.c | |
parent | c55780dcef1ba87564d8003cded7d045dce9ba34 (diff) | |
download | ffmpeg-075a55603fe8cfefad86be65048368e411bf5a33.tar.gz |
Support a-law and mu-law output in alsa.
Diffstat (limited to 'libavdevice/alsa-audio-common.c')
-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 8ebe389778..b4fb15889a 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -47,6 +47,8 @@ static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id) 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; + case CODEC_ID_PCM_MULAW: return SND_PCM_FORMAT_MU_LAW; + case CODEC_ID_PCM_ALAW: return SND_PCM_FORMAT_A_LAW; default: return SND_PCM_FORMAT_UNKNOWN; } } |