changeset 22422:dd99089c892b

Move/simplify some variable declarations
author reimar
date Sun, 04 Mar 2007 12:59:48 +0000
parents 4db5e1d31f26
children 8f95e2a3c797
files libmpdemux/demux_avs.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c	Sun Mar 04 12:55:45 2007 +0000
+++ b/libmpdemux/demux_avs.c	Sun Mar 04 12:59:48 2007 +0000
@@ -167,11 +167,9 @@
     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 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)