[vlc-commits] wav: use PCM FOURCCs with known bit size

Rémi Denis-Courmont git at videolan.org
Fri Apr 12 19:12:37 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 12 20:09:59 2013 +0300| [0e4586e352d26fb5b979ab5efb9b8f5e79b40384] | committer: Rémi Denis-Courmont

wav: use PCM FOURCCs with known bit size

(so that channel reordering works)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e4586e352d26fb5b979ab5efb9b8f5e79b40384
---

 modules/demux/wav.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 0a07349..d2be174 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -316,6 +316,9 @@ static int Open( vlc_object_t * p_this )
         if( FrameInfo_PCM( &p_sys->i_frame_size, &p_sys->i_frame_samples,
                            &p_sys->fmt ) )
             goto error;
+        p_sys->fmt.i_codec =
+            vlc_fourcc_GetCodecAudio( p_sys->fmt.i_codec,
+                                      p_sys->fmt.audio.i_bitspersample );
         break;
     case VLC_CODEC_ADPCM_MS:
     /* FIXME not sure at all FIXME */



More information about the vlc-commits mailing list