Mercurial > mplayer.hg
changeset 17552:3469899beb42
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 >
author | ods15 |
---|---|
date | Tue, 07 Feb 2006 18:17:12 +0000 |
parents | 6c3ca4e1fceb |
children | 67c30d47ffd4 |
files | libmpcodecs/vd_mpng.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_mpng.c Tue Feb 07 16:52:05 2006 +0000 +++ b/libmpcodecs/vd_mpng.c Tue Feb 07 18:17:12 2006 +0000 @@ -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 );