[Mplayer-cvslog] CVS: main codec-cfg.c,1.21,1.22

GEREOFFY arpi_esp at users.sourceforge.net
Mon May 28 01:29:05 CEST 2001


Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv14770

Modified Files:
	codec-cfg.c 
Log Message:
no codecs - segfault fixed

Index: codec-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/codec-cfg.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** codec-cfg.c	2001/04/24 22:55:52	1.21
--- codec-cfg.c	2001/05/27 23:29:03	1.22
***************
*** 551,556 ****
  		goto err_out_not_valid;
  	printf("%d audio & %d video codecs\n", nr_acodecs, nr_vcodecs);
! 	video_codecs[nr_vcodecs].name = NULL;
! 	audio_codecs[nr_acodecs].name = NULL;
  	ret_codecs[0] = video_codecs;
  	ret_codecs[1] = audio_codecs;
--- 551,556 ----
  		goto err_out_not_valid;
  	printf("%d audio & %d video codecs\n", nr_acodecs, nr_vcodecs);
! 	if(video_codecs) video_codecs[nr_vcodecs].name = NULL;
! 	if(audio_codecs) audio_codecs[nr_acodecs].name = NULL;
  	ret_codecs[0] = video_codecs;
  	ret_codecs[1] = audio_codecs;
***************
*** 615,618 ****
--- 615,619 ----
  			c = video_codecs;
  		}
+ 		if(!i) return NULL;
  		for (/* NOTHING */; i--; c++) {
                          if(start && c<=start) continue;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list