[vlc-devel] commit: Decode G.726 in Wav (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Jun 25 15:15:33 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 25 14:16:37 2009 +0200| [4402375eef967299bbcbe1a50780b4e86c932dea] | committer: Jean-Baptiste Kempf 

Decode G.726 in Wav

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

 modules/demux/wav.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index ff5367a..988b305 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -339,6 +339,7 @@ static int Open( vlc_object_t * p_this )
         /* FIXME set end of area FIXME */
         goto error;
     case VLC_FOURCC( 'a', 'g', 's', 'm' ):
+    case VLC_FOURCC( 'g', '7', '2', '6' ):
         if( FrameInfo_MSGSM( &p_sys->i_frame_size, &p_sys->i_frame_samples,
                              &p_sys->fmt ) )
             goto error;
@@ -351,12 +352,13 @@ static int Open( vlc_object_t * p_this )
 
     if( p_sys->i_frame_size <= 0 || p_sys->i_frame_samples <= 0 )
     {
-        msg_Dbg( p_demux, "invalid frame size" );
+        msg_Dbg( p_demux, "invalid frame size: %i %i", p_sys->i_frame_size,
+                                                       p_sys->i_frame_samples );
         goto error;
     }
     if( p_sys->fmt.audio.i_rate <= 0 )
     {
-        msg_Dbg( p_demux, "invalid sample rate" );
+        msg_Dbg( p_demux, "invalid sample rate: %i", p_sys->fmt.audio.i_rate );
         goto error;
     }
 
@@ -385,6 +387,7 @@ static int Open( vlc_object_t * p_this )
     return VLC_SUCCESS;
 
 error:
+    msg_Err( p_demux, "An error occured during wav demuxing" );
     free( p_wf );
     free( p_sys );
     return VLC_EGENERIC;




More information about the vlc-devel mailing list