[vlc-commits] aout: allow frequency up to 352.8 kHz

Rémi Denis-Courmont git at videolan.org
Mon Aug 5 18:01:31 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug  5 18:58:26 2013 +0300| [76d1e4948f3b52eeb2ff6b208e59bfd0cee37b00] | committer: Rémi Denis-Courmont

aout: allow frequency up to 352.8 kHz

This is the frequency for SACD Digital eXtreme Definition.

Higher sample rates exist, notably DSD's 2822.4kH but that is not PCM
and the bitrate computation would really risk 31-bits integer overflow.

(cherry picked from commit c8f94cd8514978513e18197c2c5ee4ccbc478226)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=76d1e4948f3b52eeb2ff6b208e59bfd0cee37b00
---

 modules/audio_output/amem.c |    2 +-
 src/audio_output/dec.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/amem.c b/modules/audio_output/amem.c
index 5e55ef6..906954c 100644
--- a/modules/audio_output/amem.c
+++ b/modules/audio_output/amem.c
@@ -43,7 +43,7 @@ vlc_module_begin ()
         change_private()
     add_integer ("amem-rate", 44100,
                  N_("Sample rate"), N_("Sample rate"), false)
-        change_integer_range (1, 192000)
+        change_integer_range (1, 352800)
         change_private()
     add_integer ("amem-channels", 2,
                  N_("Channels count"), N_("Channels count"), false)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 3fd0cff..57d292f 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -52,7 +52,7 @@ int aout_DecNew( audio_output_t *p_aout,
         return -1;
     }
 
-    if( p_format->i_rate > 192000 )
+    if( p_format->i_rate > 352800 )
     {
         msg_Err( p_aout, "excessive audio sample frequency (%u)",
                  p_format->i_rate );



More information about the vlc-commits mailing list