<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - sndfile-util.c crashes on 24 bit files"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70096#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - sndfile-util.c crashes on 24 bit files"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=70096">bug 70096</a>
              from <span class="vcard"><a class="email" href="mailto:kiraank@gmail.com" title="Kiran <kiraank@gmail.com>"> <span class="fn">Kiran</span></a>
</span></b>
        <pre>Submitted patch:



>From 970387d89e39362af1dddad7b374206f39c5b8f9 Mon Sep 17 00:00:00 2001
From: Kiran Krishnappa <<a href="mailto:kiraank@gmail.com">kiraank@gmail.com</a>>
Date: Sat, 5 Oct 2013 14:55:52 -0700
Subject: [PATCH] sndfile-util: fix format for 24bit depth wav files

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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>