Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 262565 Details for
Bug 354965
media-video/mplayer fails to compile against media-libs/libpng-1.5.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mplayer-libpng15.diff
mplayer-libpng15.diff (text/plain), 1.43 KB, created by
Lars Wendler (Polynomial-C) (RETIRED)
on 2011-02-15 07:50:21 UTC
(
hide
)
Description:
mplayer-libpng15.diff
Filename:
MIME Type:
Creator:
Lars Wendler (Polynomial-C) (RETIRED)
Created:
2011-02-15 07:50:21 UTC
Size:
1.43 KB
patch
obsolete
># http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2011-February/067542.html > >--- mplayer.old/libmpcodecs/vd_mpng.c 2010-03-01 02:05:52 +0100 >+++ mplayer/libmpcodecs/vd_mpng.c 2011-02-01 04:59:51 +0100 >@@ -74,7 +74,7 @@ > > static void pngReadFN( png_structp pngstr,png_bytep buffer,png_size_t size ) > { >- char * p = pngstr->io_ptr; >+ char * p = png_get_io_ptr(pngstr); > if(size>pngLength-pngPointer && pngLength>=pngPointer) size=pngLength-pngPointer; > fast_memcpy( buffer,(char *)&p[pngPointer],size ); > pngPointer+=size; >@@ -90,6 +90,7 @@ > png_uint_32 png_width=0,png_height=0; > int depth,color; > png_uint_32 i; >+ png_byte color_type; > mp_image_t* mpi; > > int cols; >@@ -111,7 +112,9 @@ > png_get_IHDR( png,info,&png_width,&png_height,&depth,&color,NULL,NULL,NULL ); > png_set_bgr( png ); > >- switch( info->color_type ) { >+ color_type=png_get_color_type(png, info); >+ >+ switch( color_type ) { > case PNG_COLOR_TYPE_GRAY_ALPHA: > mp_msg( MSGT_DECVIDEO,MSGL_INFO,"Sorry gray scaled png with alpha channel not supported at moment.\n" ); > break; >@@ -128,7 +131,7 @@ > out_fmt=IMGFMT_BGR24; > break; > default: >- mp_msg( MSGT_DECVIDEO,MSGL_INFO,"Sorry, unsupported PNG colorspace: %d.\n" ,info->color_type); >+ mp_msg( MSGT_DECVIDEO,MSGL_INFO,"Sorry, unsupported PNG colorspace: %d.\n" ,color_type); > } > > // (re)init libvo if image parameters changed (width/height/colorspace)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 354965
: 262565