aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-04 12:59:48 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-04 12:59:48 +0000
commit5c9ee0eb4dca008a04082216221b33434bbcbffd (patch)
tree457cc3f3ced1694c0f0742a3b09148e07f992009
parentbf9ed9dc268184011b54244f43bf3bf8085b92de (diff)
Move/simplify some variable declarations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22440 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_avs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libmpdemux/demux_avs.c b/libmpdemux/demux_avs.c
index 3a0312fb13..ab81b0dd49 100644
--- a/libmpdemux/demux_avs.c
+++ b/libmpdemux/demux_avs.c
@@ -167,11 +167,9 @@ static int demux_avs_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds)
demux_packet_t *dp = NULL;
AVS_T *AVS = (AVS_T *) demuxer->priv;
- demux_stream_t *d_video=demuxer->video;
- sh_video_t *sh_video=d_video->sh;
-
if (ds == demuxer->video)
{
+ sh_video_t *sh_video = demuxer->video->sh;
char *dst;
int w, h;
if (AVS->video_info->num_frames < AVS->frameno) return 0; // EOF
@@ -348,8 +346,7 @@ static demuxer_t* demux_open_avs(demuxer_t* demuxer)
static int demux_avs_control(demuxer_t *demuxer, int cmd, void *arg)
{
- demux_stream_t *d_video=demuxer->video;
- sh_video_t *sh_video=d_video->sh;
+ sh_video_t *sh_video=demuxer->video->sh;
AVS_T *AVS = (AVS_T *) demuxer->priv;
switch(cmd)