[FFmpeg-cvslog] Support CODEC_ID_PCM_F64* output via alsa (stereo only).

Carl Eugen Hoyos git at videolan.org
Tue Apr 12 09:38:55 CEST 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Apr 12 09:11:56 2011 +0200| [71306c5d21d103eed361c880ce3ab26f1e53b8d8] | committer: Carl Eugen Hoyos

Support CODEC_ID_PCM_F64* output via alsa (stereo only).

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71306c5d21d103eed361c880ce3ab26f1e53b8d8
---

 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 7ada466..eb75eb4 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_F64LE: return SND_PCM_FORMAT_FLOAT64_LE;
+        case CODEC_ID_PCM_F64BE: return SND_PCM_FORMAT_FLOAT64_BE;
         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;



More information about the ffmpeg-cvslog mailing list