]> git.sesse.net Git - vlc/commitdiff
Png: compatibility with libpng 1.4
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 15 Feb 2010 22:50:27 +0000 (23:50 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 15 Feb 2010 22:50:27 +0000 (23:50 +0100)
Patch probably from arekm -- pld-linux . org

modules/codec/png.c

index 5dd4c2e21e7f7ea18ce83935e503194c02634d85..acd569481013008c063b7054009e9f721979eafb 100644 (file)
@@ -152,7 +152,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_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;
     }
@@ -160,7 +160,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_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;
     }