# HG changeset patch # User reimar # Date 1190672474 0 # Node ID 664366177d2923b80b126d818fcb0c785c4f16a3 # Parent 1966dc28e5a57f8b168aee1b25a22f7b23e67ff8 Simplify: initialize at declaration at the start of the function diff -r 1966dc28e5a5 -r 664366177d29 libmpdemux/demux_audio.c --- 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) {