diff libmpdemux/demux_roq.c @ 36570:e789b4c9007b

demux_roq: declare variables where they are used.
author reimar
date Mon, 20 Jan 2014 22:08:35 +0000
parents 6ff73f13785c
children f3c835ddce85
line wrap: on
line diff
--- a/libmpdemux/demux_roq.c	Mon Jan 20 22:08:34 2014 +0000
+++ b/libmpdemux/demux_roq.c	Mon Jan 20 22:08:35 2014 +0000
@@ -109,9 +109,6 @@
   sh_audio_t *sh_audio = NULL;
 
   roq_data_t *roq_data = calloc(1, sizeof(*roq_data));
-  int chunk_id;
-  int chunk_size;
-  int chunk_arg;
   int last_chunk_id = 0;
   int largest_audio_chunk = 0;
   int fps;
@@ -121,9 +118,9 @@
   fps = stream_read_word_le(demuxer->stream);
   while (!stream_eof(demuxer->stream))
   {
-    chunk_id = stream_read_word_le(demuxer->stream);
-    chunk_size = stream_read_dword_le(demuxer->stream);
-    chunk_arg = stream_read_word_le(demuxer->stream);
+    int chunk_id = stream_read_word_le(demuxer->stream);
+    int chunk_size = stream_read_dword_le(demuxer->stream);
+    int chunk_arg = stream_read_word_le(demuxer->stream);
 
     // this is the only useful header info in the file
     if (chunk_id == RoQ_INFO)