[MPlayer-cvslog] r23399 - in trunk: libao2/ao_macosx.c libmpcodecs/vd_ffmpeg.c libmpcodecs/vf_yadif.c libmpdemux/asfheader.c libmpdemux/demux_mov.c libmpdemux/demux_ogg.c libmpdemux/demux_ty.c libvo/vo_gl.c libvo/vo_macosx.m libvo/vo_quartz.c libvo/vo_x11.c stream/stream_dvd.c stream/vcd_read_darwin.h

diego subversion at mplayerhq.hu
Mon May 28 10:42:35 CEST 2007


Author: diego
Date: Mon May 28 10:42:35 2007
New Revision: 23399

Log:
Remove some unused variables, patch by timwoj ieee org.


Modified:
   trunk/libao2/ao_macosx.c
   trunk/libmpcodecs/vd_ffmpeg.c
   trunk/libmpcodecs/vf_yadif.c
   trunk/libmpdemux/asfheader.c
   trunk/libmpdemux/demux_mov.c
   trunk/libmpdemux/demux_ogg.c
   trunk/libmpdemux/demux_ty.c
   trunk/libvo/vo_gl.c
   trunk/libvo/vo_macosx.m
   trunk/libvo/vo_quartz.c
   trunk/libvo/vo_x11.c
   trunk/stream/stream_dvd.c
   trunk/stream/vcd_read_darwin.h

Modified: trunk/libao2/ao_macosx.c
==============================================================================
--- trunk/libao2/ao_macosx.c	(original)
+++ trunk/libao2/ao_macosx.c	Mon May 28 10:42:35 2007
@@ -173,7 +173,7 @@ int req=(inNumFrames)*ao->packetSize;
 static int control(int cmd,void *arg){
 ao_control_vol_t *control_vol;
 OSStatus err;
-Float32 pan, vol;
+Float32 vol;
 	switch (cmd) {
 	case AOCONTROL_GET_VOLUME:
 		control_vol = (ao_control_vol_t*)arg;
@@ -237,7 +237,7 @@ static void print_format(const char* str
 
 static int init(int rate,int channels,int format,int flags)
 {
-AudioStreamBasicDescription inDesc, outDesc;
+AudioStreamBasicDescription inDesc;
 ComponentDescription desc; 
 Component comp; 
 AURenderCallbackStruct renderCallback;
@@ -402,8 +402,6 @@ static float get_delay(void)
 /* unload plugin and deregister from coreaudio */
 static void uninit(int immed)
 {
-  int i;
-  OSErr status;
 
   if (!immed) {
     long long timeleft=(1000000LL*buf_used())/ao_data.bps;

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	(original)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Mon May 28 10:42:35 2007
@@ -735,7 +735,6 @@ static mp_image_t* decode(sh_video_t *sh
     AVCodecContext *avctx = ctx->avctx;
     mp_image_t* mpi=NULL;
     int dr1= ctx->do_dr1;
-    unsigned char *buf = NULL;
 
     if(len<=0) return NULL; // skipped frame
 

Modified: trunk/libmpcodecs/vf_yadif.c
==============================================================================
--- trunk/libmpcodecs/vf_yadif.c	(original)
+++ trunk/libmpcodecs/vf_yadif.c	Mon May 28 10:42:35 2007
@@ -347,7 +347,7 @@ static void filter_line_c(struct vf_priv
 }
 
 static void filter(struct vf_priv_s *p, uint8_t *dst[3], int dst_stride[3], int width, int height, int parity, int tff){
-    int x, y, i;
+    int y, i;
 
     for(i=0; i<3; i++){
         int is_chroma= !!i;

Modified: trunk/libmpdemux/asfheader.c
==============================================================================
--- trunk/libmpdemux/asfheader.c	(original)
+++ trunk/libmpdemux/asfheader.c	Mon May 28 10:42:35 2007
@@ -201,7 +201,7 @@ static int get_ext_stream_properties(cha
   unsigned bitrate;
 
   while ((pos = find_asf_guid(buf, asf_ext_stream_header, pos, buf_len)) >= 0) {
-    int this_stream_num, stnamect, payct, i, objlen;
+    int this_stream_num, stnamect, payct, i;
     int buf_max_index=pos+50;
     if (buf_max_index > buf_len) return 0;
     buffer = &buf[pos];

Modified: trunk/libmpdemux/demux_mov.c
==============================================================================
--- trunk/libmpdemux/demux_mov.c	(original)
+++ trunk/libmpdemux/demux_mov.c	Mon May 28 10:42:35 2007
@@ -434,7 +434,6 @@ static int mov_check_file(demuxer_t* dem
 		  case MOV_FOURCC('r','m','d','a'):
 		      continue;
 		  case MOV_FOURCC('r','d','r','f'): {
-		      int tmp=stream_read_dword(demuxer->stream);
 		      int type=stream_read_dword_le(demuxer->stream);
 	              int slen=stream_read_dword(demuxer->stream);
 		      //char* s=malloc(slen+1);
@@ -455,7 +454,6 @@ static int mov_check_file(demuxer_t* dem
 		      len-=12+slen;i-=12+slen; break;
 		    }
 		  case MOV_FOURCC('r','m','d','r'): {
-		      int flags=stream_read_dword(demuxer->stream);
 		      int rate=stream_read_dword(demuxer->stream);
 		      mp_msg(MSGT_DEMUX,MSGL_V,"  min. data rate: %d bits/sec\n",rate);
 		      len-=8; i-=8; break;
@@ -1638,12 +1636,9 @@ static int lschunks_intrak(demuxer_t* de
       break;
     }
     case MOV_FOURCC('h','d','l','r'): {
-      unsigned int tmp = stream_read_dword(demuxer->stream);
       unsigned int type = stream_read_dword_le(demuxer->stream);
       unsigned int subtype = stream_read_dword_le(demuxer->stream);
       unsigned int manufact = stream_read_dword_le(demuxer->stream);
-      unsigned int comp_flags = stream_read_dword(demuxer->stream);
-      unsigned int comp_mask = stream_read_dword(demuxer->stream);
       int len = stream_read_char(demuxer->stream);
       char* str = malloc(len + 1);
       stream_read(demuxer->stream, str, len);
@@ -1723,7 +1718,6 @@ static int lschunks_intrak(demuxer_t* de
       break;
     }
     case MOV_FOURCC('s','t','t','s'): {
-      int temp = stream_read_dword(demuxer->stream);
       int len = stream_read_dword(demuxer->stream);
       int i;
       unsigned int pts = 0;
@@ -1782,7 +1776,6 @@ static int lschunks_intrak(demuxer_t* de
       break;
     }
     case MOV_FOURCC('s','t','c','o'): {
-      int temp = stream_read_dword(demuxer->stream);
       int len = stream_read_dword(demuxer->stream);
       int i;
       mp_msg(MSGT_DEMUX, MSGL_V, 
@@ -1799,7 +1792,6 @@ static int lschunks_intrak(demuxer_t* de
       break;
     }
     case MOV_FOURCC('c','o','6','4'): {
-      int temp = stream_read_dword(demuxer->stream);
       int len = stream_read_dword(demuxer->stream);
       int i;
       mp_msg(MSGT_DEMUX, MSGL_V,

Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c	(original)
+++ trunk/libmpdemux/demux_ogg.c	Mon May 28 10:42:35 2007
@@ -166,8 +166,6 @@ extern subtitle* vo_sub;
 
 void demux_ogg_add_sub (ogg_stream_t* os,ogg_packet* pack) {
   int lcv;
-  int line_pos = 0;
-  int ignoring = 0;
   char *packet = pack->packet;
 
   if (pack->bytes < 4)
@@ -247,7 +245,6 @@ static  int demux_ogg_get_page_stream(og
 
 static unsigned char* demux_ogg_read_packet(ogg_stream_t* os,ogg_packet* pack,void *context,float* pts,int* flags, int samplesize) {
   unsigned char* data = pack->packet;
-  ogg_demuxer_t *ogg_d = os->ogg_d;
 
   *pts = 0;
   *flags = 0;

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	(original)
+++ trunk/libmpdemux/demux_ty.c	Mon May 28 10:42:35 2007
@@ -691,7 +691,6 @@ static int demux_ty_fill_buffer( demuxer
                
                if ( tivo->tmf != 1 )
                {
-                  off_t size;
                   off_t offset;
 
                   numberParts = demux->stream->end_pos / TIVO_PART_LENGTH;

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	(original)
+++ trunk/libvo/vo_gl.c	Mon May 28 10:42:35 2007
@@ -261,7 +261,6 @@ static void genEOSD(mp_eosd_images_t *im
   GLint scale_type = (scaled_osd) ? GL_LINEAR : GL_NEAREST;
   ass_image_t *img = imgs->imgs;
   ass_image_t *i;
-  int cnt;
 
   if (imgs->changed == 0) // there are elements, but they are unchanged
       return;

Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m	(original)
+++ trunk/libvo/vo_macosx.m	Mon May 28 10:42:35 2007
@@ -95,7 +95,6 @@ static void draw_alpha(int x0, int y0, i
 
 static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
 {
-	int i;
 	
 	//init screen
 	screen_array = [NSScreen screens];

Modified: trunk/libvo/vo_quartz.c
==============================================================================
--- trunk/libvo/vo_quartz.c	(original)
+++ trunk/libvo/vo_quartz.c	Mon May 28 10:42:35 2007
@@ -99,7 +99,6 @@ static CGRect bounds;
 static GDHandle deviceHdl;
 
 static CGDataProviderRef dataProviderRef;
-static CGImageAlphaInfo alphaInfo;
 static CGImageRef image;
 
 static Rect imgRect; // size of the original image (unscaled)

Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c	(original)
+++ trunk/libvo/vo_x11.c	Mon May 28 10:42:35 2007
@@ -71,7 +71,7 @@ static unsigned char *ImageDataOrig;
 
 /* X11 related variables */
 static XImage *myximage = NULL;
-static int depth, bpp, mode;
+static int depth, bpp;
 static XWindowAttributes attribs;
 
 static int int_pause;

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Mon May 28 10:42:35 2007
@@ -652,7 +652,7 @@ static double dvd_get_current_time(strea
 static int dvd_seek_to_time(stream_t *stream, ifo_handle_t *vts_file, double sec)
 {
     unsigned int i, j, k, timeunit, ac_time, tmap_sector=0, cell_sector=0, vobu_sector=0;
-    int t=0, t2=0;
+    int t=0;
     double tm, duration;
     off_t pos = -1;
     dvd_priv_t *d = stream->priv;

Modified: trunk/stream/vcd_read_darwin.h
==============================================================================
--- trunk/stream/vcd_read_darwin.h	(original)
+++ trunk/stream/vcd_read_darwin.h	Mon May 28 10:42:35 2007
@@ -45,7 +45,6 @@ return 0;
 
 int vcd_seek_to_track(mp_vcd_priv_t* vcd, int track)
 {
-	dk_cd_read_track_info_t tocentry;
 	struct CDTrackInfo entry;
 
 	memset( &vcd->entry, 0, sizeof(vcd->entry));
@@ -69,7 +68,6 @@ int vcd_get_track_end(mp_vcd_priv_t* vcd
 	dk_cd_read_disc_info_t tochdr;
 	struct CDDiscInfo hdr;
 	
-	dk_cd_read_track_info_t tocentry;
 	struct CDTrackInfo entry;
 	
 	//read toc header



More information about the MPlayer-cvslog mailing list