openbsd-ports/x11/vlc/patches/patch-modules_codec_png_c
naddy eed7c62887 Fix build with png-1.5.
All fixes by yours truly.
2011-07-08 20:38:00 +00:00

25 lines
948 B
Plaintext

$OpenBSD: patch-modules_codec_png_c,v 1.1 2011/07/08 20:38:02 naddy Exp $
Fix build with png-1.5.
--- modules/codec/png.c.orig Tue Jul 5 12:28:47 2011
+++ modules/codec/png.c Tue Jul 5 12:29:21 2011
@@ -155,7 +155,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block
p_info = png_create_info_struct( p_png );
if( p_info == NULL )
{
- png_destroy_read_struct( &p_png, png_infopp_NULL, png_infopp_NULL );
+ png_destroy_read_struct( &p_png, NULL, NULL );
block_Release( p_block ); *pp_block = NULL;
return NULL;
}
@@ -163,7 +163,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block
p_end_info = png_create_info_struct( p_png );
if( p_end_info == NULL )
{
- png_destroy_read_struct( &p_png, &p_info, png_infopp_NULL );
+ png_destroy_read_struct( &p_png, &p_info, NULL );
block_Release( p_block ); *pp_block = NULL;
return NULL;
}