]> git.sesse.net Git - vlc/commitdiff
Decode G.726 in Wav
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Jun 2009 12:16:37 +0000 (14:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 25 Jun 2009 12:16:37 +0000 (14:16 +0200)
modules/demux/wav.c

index 9f4c832e012676d2dbd7cc0d0f61b6ffd0001357..a389e9dabf1636cf47f8013cfeb6b160a8ed6c1b 100644 (file)
@@ -339,6 +339,7 @@ static int Open( vlc_object_t * p_this )
         /* FIXME set end of area FIXME */
         goto error;
     case VLC_CODEC_GSM_MS:
+    case VLC_CODEC_ADPCM_G726:
         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;