[MPlayer-cvslog] CVS: main/libmpdemux asfheader.c,1.40,1.41

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu May 26 13:23:17 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv4035/libmpdemux

Modified Files:
	asfheader.c 
Log Message:
support DVR format


Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asfheader.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- asfheader.c	25 Dec 2004 11:31:32 -0000	1.40
+++ asfheader.c	26 May 2005 11:23:15 -0000	1.41
@@ -238,6 +238,9 @@
         sh_video->bih=calloc((len<sizeof(BITMAPINFOHEADER))?sizeof(BITMAPINFOHEADER):len,1);
         memcpy(sh_video->bih,&buffer[4+4+1+2],len);
 	le2me_BITMAPINFOHEADER(sh_video->bih);
+	if (sh_video->bih->biCompression == mmioFOURCC('D', 'V', 'R', ' '))
+	  mp_msg(MSGT_DEMUXER, MSGL_WARN, "DVR will probably only work with "
+	          "libavformat, try -demuxer 35 if you have problems\n");
         //sh_video->fps=(float)sh_video->video.dwRate/(float)sh_video->video.dwScale;
         //sh_video->frametime=(float)sh_video->video.dwScale/(float)sh_video->video.dwRate;
         if(verbose>=1) print_video_header(sh_video->bih);




More information about the MPlayer-cvslog mailing list