changeset 2050:18f4dd5d568f

-Wall warnings fixed
author arpi
date Tue, 02 Oct 2001 21:45:41 +0000
parents df41903fd7d7
children 596653943fa1
files codec-cfg.c demux_avi.c demuxer.c libmpeg2/mpeg2.h libmpeg2/mpeg2_internal.h open.c stream.c subreader.h
diffstat 8 files changed, 21 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/codec-cfg.c	Tue Oct 02 21:44:45 2001 +0000
+++ b/codec-cfg.c	Tue Oct 02 21:45:41 2001 +0000
@@ -645,7 +645,7 @@
 }
 
 void list_codecs(int audioflag){
-	int i, j;
+	int i;
 	codecs_t *c;
 
 		if (audioflag) {
@@ -657,7 +657,7 @@
 			c = video_codecs;
 			printf("vc:      vfm: status:   info:  [lib/dll]\n");
 		}
-		if(!i) return NULL;
+		if(!i) return;
 		for (/* NOTHING */; i--; c++) {
 			char* s="unknown ";
 			switch(c->status){
--- a/demux_avi.c	Tue Oct 02 21:44:45 2001 +0000
+++ b/demux_avi.c	Tue Oct 02 21:45:41 2001 +0000
@@ -359,6 +359,8 @@
 extern int force_ni;
 extern int pts_from_bps;
 
+void read_avi_header(demuxer_t *demuxer,int index_mode);
+
 demuxer_t* demux_open_avi(demuxer_t* demuxer){
     demux_stream_t *d_audio=demuxer->audio;
     demux_stream_t *d_video=demuxer->video;
--- a/demuxer.c	Tue Oct 02 21:44:45 2001 +0000
+++ b/demuxer.c	Tue Oct 02 21:45:41 2001 +0000
@@ -341,6 +341,9 @@
 int asf_check_header(demuxer_t *demuxer);
 int read_asf_header(demuxer_t *demuxer);
 demux_stream_t* demux_avi_select_stream(demuxer_t *demux,unsigned int id);
+demuxer_t* demux_open_avi(demuxer_t* demuxer);
+int mov_check_file(demuxer_t* demuxer);
+int mov_read_header(demuxer_t* demuxer);
 
 
 demuxer_t* demux_open(stream_t *stream,int file_format,int audio_id,int video_id,int dvdsub_id){
--- a/libmpeg2/mpeg2.h	Tue Oct 02 21:44:45 2001 +0000
+++ b/libmpeg2/mpeg2.h	Tue Oct 02 21:45:41 2001 +0000
@@ -54,7 +54,7 @@
 int mpeg2_decode_data (vo_functions_t *, uint8_t * data_start, uint8_t * data_end,int framedrop);
 //void mpeg2_close (vo_functions_t *);
 //void mpeg2_drop (int flag);
-
+//void mpeg2_free_image_buffers (picture_t * picture)
 
 /* initialize mpegdec with a opaque user pointer */
 //void mpeg2_init (mpeg2dec_t * mpeg2dec, uint32_t mm_accel
--- a/libmpeg2/mpeg2_internal.h	Tue Oct 02 21:44:45 2001 +0000
+++ b/libmpeg2/mpeg2_internal.h	Tue Oct 02 21:45:41 2001 +0000
@@ -214,6 +214,7 @@
 void stats_header (uint8_t code, uint8_t * buffer);
 
 void mpeg2_allocate_image_buffers(picture_t * picture);
+void mpeg2_free_image_buffers (picture_t * picture);
 
 
 #ifdef MPEG12_POSTPROC
--- a/open.c	Tue Oct 02 21:44:45 2001 +0000
+++ b/open.c	Tue Oct 02 21:45:41 2001 +0000
@@ -113,7 +113,7 @@
 //============ Open DVD title ==============
 #ifdef USE_DVDREAD
 if(dvd_title){
-  int ret,ret2;
+//  int ret,ret2;
   dvd_priv_t *d;
     int ttn,pgc_id,pgn;
     dvd_reader_t *dvd;
@@ -297,7 +297,6 @@
     
     if( d->cur_pgc->cell_playback[ next_cell ].block_type
                                         == BLOCK_TYPE_ANGLE_BLOCK ) {
-	    int i;
 	    while(next_cell<d->cur_pgc->nr_of_cells){
                 if( d->cur_pgc->cell_playback[next_cell].block_mode
                                           == BLOCK_MODE_LAST_CELL ) break;
--- a/stream.c	Tue Oct 02 21:44:45 2001 +0000
+++ b/stream.c	Tue Oct 02 21:45:41 2001 +0000
@@ -67,16 +67,6 @@
 
 //  if(verbose>=3) printf("seek to 0x%X\n",(unsigned int)pos);
 
-if(verbose>=3){
-#ifdef _LARGEFILE_SOURCE
-  printf("s->pos=%llX  newpos=%llX  new_bufpos=%llX  buflen=%X  \n",
-    (long long)s->pos,(long long)newpos,(long long)pos,s->buf_len);
-#else
-  printf("s->pos=%X  newpos=%X  new_bufpos=%X  buflen=%X  \n",
-    (unsigned int)s->pos,newpos,pos,s->buf_len);
-#endif
-}
-
   s->buf_pos=s->buf_len=0;
 
   switch(s->type){
@@ -93,6 +83,16 @@
     newpos=pos/2048; newpos*=2048; break;
   }
 
+if(verbose>=3){
+#ifdef _LARGEFILE_SOURCE
+  printf("s->pos=%llX  newpos=%llX  new_bufpos=%llX  buflen=%X  \n",
+    (long long)s->pos,(long long)newpos,(long long)pos,s->buf_len);
+#else
+  printf("s->pos=%X  newpos=%X  new_bufpos=%X  buflen=%X  \n",
+    (unsigned int)s->pos,newpos,pos,s->buf_len);
+#endif
+}
+
   pos-=newpos;
 
 if(newpos==0 || newpos!=s->pos){
--- a/subreader.h	Tue Oct 02 21:44:45 2001 +0000
+++ b/subreader.h	Tue Oct 02 21:45:41 2001 +0000
@@ -25,5 +25,6 @@
 
 subtitle* sub_read_file (char *filename);
 char * sub_filename(char *path, char * fname );
+void list_sub_file(subtitle* subs);
 
 #endif