diff libmpdemux/demux_mf.c @ 4656:04880518728d

add initial mPNG support
author pontscho
date Mon, 11 Feb 2002 09:15:59 +0000
parents e09b1a5b464d
children ef8a43b74075
line wrap: on
line diff
--- a/libmpdemux/demux_mf.c	Mon Feb 11 07:30:05 2002 +0000
+++ b/libmpdemux/demux_mf.c	Mon Feb 11 09:15:59 2002 +0000
@@ -76,7 +76,7 @@
 
   // go back to the beginning
   stream_reset(demuxer->stream);
-  stream_seek(demuxer->stream, 0);
+//  stream_seek(demuxer->stream, 0);
   demuxer->movi_start = 0;
   demuxer->movi_end = mf->nr_of_files - 1;
   dmf->nr_of_frames= mf->nr_of_files;
@@ -93,9 +93,11 @@
   // video_read_properties() will choke
   sh_video->ds = demuxer->video;
 
-  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; }
+  if ( !strcasecmp( mf_type,"jpg" ) || 
+        !(strcasecmp(mf_type, "jpeg"))) sh_video->format = mmioFOURCC('M', 'J', 'P', 'G');
+   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; }
 
   sh_video->disp_w = mf_w;
   sh_video->disp_h = mf_h;