[FFmpeg-cvslog] Add support for pcm_f32* to alsa.
Carl Eugen Hoyos
git at videolan.org
Tue Apr 5 16:15:02 CEST 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Apr 5 16:12:41 2011 +0200| [2ed05f657f622a1c84f97a841a488e876f734201] | committer: Carl Eugen Hoyos
Add support for pcm_f32* to alsa.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ed05f657f622a1c84f97a841a488e876f734201
---
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 bf22702..46ac162 100644
--- a/libavdevice/alsa-audio-common.c
+++ b/libavdevice/alsa-audio-common.c
@@ -36,6 +36,8 @@
static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id)
{
switch(codec_id) {
+ case CODEC_ID_PCM_F32LE: return SND_PCM_FORMAT_FLOAT_LE;
+ 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_S16LE: return SND_PCM_FORMAT_S16_LE;
More information about the ffmpeg-cvslog
mailing list