changeset 28101:231f008859b9

Warning fixes for demux_nut
author ods15
date Fri, 12 Dec 2008 05:08:28 +0000
parents 506dd3b6a519
children d07564455ae2
files libmpdemux/demux_nut.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nut.c	Fri Dec 12 05:07:18 2008 +0000
+++ b/libmpdemux/demux_nut.c	Fri Dec 12 05:08:28 2008 +0000
@@ -64,7 +64,6 @@
 }
 
 static demuxer_t * demux_open_nut(demuxer_t * demuxer) {
-	extern int index_mode;
 	nut_demuxer_opts_tt dopts = {
 		.input = {
 			.priv = demuxer->stream,
@@ -97,8 +96,8 @@
 				calloc(sizeof(WAVEFORMATEX) +
 				              s[i].codec_specific_len, 1);
 			sh_audio_t* sh_audio = new_sh_audio(demuxer, i);
+			int j;
 			mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "nut", i);
-			int j;
 
 			sh_audio->wf= wf; sh_audio->ds = demuxer->audio;
 			sh_audio->audio.dwSampleSize = 0; // FIXME
@@ -133,8 +132,8 @@
 				calloc(sizeof(BITMAPINFOHEADER) +
 				              s[i].codec_specific_len, 1);
 			sh_video_t * sh_video = new_sh_video(demuxer, i);
+			int j;
 			mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_VideoID, "nut", i);
-			int j;
 
 			sh_video->bih = bih;
 			sh_video->ds = demuxer->video;