]> git.sesse.net Git - vlc/commitdiff
aout: allow frequency up to 352.8 kHz
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 5 Aug 2013 15:58:26 +0000 (18:58 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 5 Aug 2013 15:58:26 +0000 (18:58 +0300)
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.

modules/audio_output/amem.c
src/audio_output/dec.c

index 5e55ef6e160fe3b906b28ec1ac7c18af772f4591..906954ced5fcbd5adbf500cffe86d94257d39c21 100644 (file)
@@ -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)
index 039417d15a72a0113ec75ab222f2527d21641dcd..2dfcff013b4e863acfaa2d868411507e9a1adba6 100644 (file)
@@ -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 );