changeset 24592:664366177d29

Simplify: initialize at declaration at the start of the function
author reimar
date Mon, 24 Sep 2007 22:21:14 +0000
parents 1966dc28e5a5
children 795d9baf21ab
files libmpdemux/demux_audio.c
diffstat 1 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Mon Sep 24 22:18:47 2007 +0000
+++ b/libmpdemux/demux_audio.c	Mon Sep 24 22:21:14 2007 +0000
@@ -546,20 +546,15 @@
 static int demux_audio_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds) {
   int l;
   demux_packet_t* dp;
-  sh_audio_t* sh_audio;
-  demuxer_t* demux;
-  da_priv_t* priv;
-  stream_t* s;
-  sh_audio = ds->sh;
-  demux = ds->demuxer;
-  priv = demux->priv;
-  s = demux->stream;
+  sh_audio_t* sh_audio = ds->sh;
+  demuxer_t* demux = ds->demuxer;
+  da_priv_t* priv = demux->priv;
+  double this_pts = priv->next_pts;
+  stream_t* s = demux->stream;
 
   if(s->eof)
     return 0;
 
-  double this_pts = priv->next_pts;
-
   switch(priv->frmt) {
   case MP3 :
     while(1) {