[Mplayer-cvslog] CVS: main/libmpdemux demux_mf.c,1.3,1.4

Alex Beregszaszi alex at mplayer.dev.hu
Sun Feb 10 19:09:55 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv10222

Modified Files:
	demux_mf.c 
Log Message:
identify jpg with case-insensitive 'jpg' or 'jpeg' string

Index: demux_mf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mf.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- demux_mf.c	7 Feb 2002 12:07:47 -0000	1.3
+++ demux_mf.c	10 Feb 2002 18:09:52 -0000	1.4
@@ -93,7 +93,8 @@
   // video_read_properties() will choke
   sh_video->ds = demuxer->video;
 
-  if ( !strcmp( mf_type,"jpg" ) ) sh_video->format = mmioFOURCC('M', 'J', 'P', 'G');
+  if ( !strcasecmp( mf_type,"jpg" ) ||
+	!(strcasecmp(mf_type, "jpeg"))) sh_video->format = mmioFOURCC('M', 'J', 'P', 'G');
    else { mp_msg(MSGT_DEMUX, MSGL_INFO, "[demux_mf] unknow input file type.\n" ); free( dmf ); return NULL; }
 
   sh_video->disp_w = mf_w;




More information about the MPlayer-cvslog mailing list