changeset 18985:add5f992bba2

more c++ decl crap
author rfelker
date Mon, 10 Jul 2006 02:53:06 +0000
parents 07fc09eaab56
children d743c48823cc
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Mon Jul 10 02:51:52 2006 +0000
+++ b/libmpdemux/demux_lavf.c	Mon Jul 10 02:53:06 2006 +0000
@@ -187,9 +187,10 @@
         switch(codec->codec_type){
         case CODEC_TYPE_AUDIO:{
             WAVEFORMATEX *wf= calloc(sizeof(WAVEFORMATEX) + codec->extradata_size, 1);
+            sh_audio_t* sh_audio;
             if(priv->audio_streams >= MAX_A_STREAMS)
                 break;
-            sh_audio_t* sh_audio=new_sh_audio(demuxer, i);
+            sh_audio=new_sh_audio(demuxer, i);
             if(!sh_audio)
                 break;
             priv->astreams[priv->audio_streams] = i;