[Mplayer-cvslog] CVS: main/libmpdemux demux_mf.c,1.7,1.8
Arpi of Ize
arpi at mplayerhq.hu
Tue Sep 10 22:59:55 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7190/libmpdemux
Modified Files:
demux_mf.c
Log Message:
TGA images (-mf on:type=tga) support
patch by Tilman Sauerbeck <tsauerbeck at users.sourceforge.net>
Index: demux_mf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- demux_mf.c 24 Apr 2002 15:36:06 -0000 1.7
+++ demux_mf.c 10 Sep 2002 20:59:52 -0000 1.8
@@ -95,9 +95,11 @@
if ( !strcasecmp( mf_type,"jpg" ) ||
!(strcasecmp(mf_type, "jpeg"))) sh_video->format = mmioFOURCC('I', 'J', 'P', 'G');
- else
+ else
if ( !strcasecmp( mf_type,"png" )) sh_video->format = mmioFOURCC('M', 'P', 'N', 'G' );
- else { mp_msg(MSGT_DEMUX, MSGL_INFO, "[demux_mf] unknow input file type.\n" ); free( dmf ); return NULL; }
+ else
+ if ( !strcasecmp( mf_type,"tga" )) sh_video->format = mmioFOURCC('M', 'T', 'G', 'A' );
+ else { mp_msg(MSGT_DEMUX, MSGL_INFO, "[demux_mf] unknow input file type.\n" ); free( dmf ); return NULL; }
sh_video->disp_w = mf_w;
sh_video->disp_h = mf_h;
More information about the MPlayer-cvslog
mailing list