1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 04:02:06 +00:00

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 >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17553 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ods15 2006-02-07 18:17:12 +00:00
parent 0a7fab7bab
commit 5d1bccd70c

View File

@ -89,6 +89,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
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 );