[MPlayer-cvslog] CVS: main/libmpcodecs vd_mpng.c,1.7,1.8

Oded Shimon CVS syncmail at mplayerhq.hu
Tue Feb 7 19:17:14 CET 2006


CVS change done by Oded Shimon CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv25801/libmpcodecs

Modified Files:
	vd_mpng.c 
Log Message:
Fix mpng to work correctly with 16 bit png's. don't have any files to test 
this on, but mpng still works correctly for files that worked fine before.
patch by derf < tterribe BANG xiph POIT org >


Index: vd_mpng.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_mpng.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- vd_mpng.c	18 May 2005 10:44:45 -0000	1.7
+++ vd_mpng.c	7 Feb 2006 18:17:12 -0000	1.8
@@ -89,6 +89,7 @@
  pngPointer=8;
  pngLength=len;
  png_set_read_fn( png,data,pngReadFN );
+ png_set_strip_16( png );
  png_set_sig_bytes( png,8 );
  png_read_info( png,info );
  png_get_IHDR( png,info,&png_width,&png_height,&depth,&color,NULL,NULL,NULL );




More information about the MPlayer-cvslog mailing list