[PATCH] sndfile-util: fix format for 24bit depth wav files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Can someone review my patch for the bug:
https://bugs.freedesktop.org/show_bug.cgi?id=70096

Regards,
Kiran



On Mon, Oct 7, 2013 at 9:43 AM, Kiran Krishnappa <kiraank at gmail.com> wrote:

> PA_SAMPLE_24NE generated in pa_sndfile_read_sample_spec is not
> handled in pa_sndfile_readf_function. paplay used to get aborted
> for 24bit depth wav files
> ---
>  src/pulsecore/sndfile-util.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/pulsecore/sndfile-util.c b/src/pulsecore/sndfile-util.c
> index 0820ee4..46689af 100644
> --- a/src/pulsecore/sndfile-util.c
> +++ b/src/pulsecore/sndfile-util.c
> @@ -386,6 +386,9 @@ pa_sndfile_readf_t pa_sndfile_readf_function(const
> pa_sample_spec *ss) {
>          case PA_SAMPLE_ALAW:
>              return NULL;
>
> +        case PA_SAMPLE_S24NE:
> +            return NULL;
> +
>          default:
>              pa_assert_not_reached();
>      }
> --
> 1.7.9.5
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20131008/4f5eafc4/attachment.html>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux