# HG changeset patch # User ods15 # Date 1139336232 0 # Node ID 3469899beb428fa1c8c7b3229bbf34d99f7fe067 # Parent 6c3ca4e1fceb5da8db0cc960b9ed26807e0697c0 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 > diff -r 6c3ca4e1fceb -r 3469899beb42 libmpcodecs/vd_mpng.c --- 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 );