Commit 816ea1d6 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* MPNG support

parent 2139a224
......@@ -65,7 +65,8 @@ static int OpenDecoder( vlc_object_t *p_this )
decoder_t *p_dec = (decoder_t*)p_this;
decoder_sys_t *p_sys;
if( p_dec->fmt_in.i_codec != VLC_FOURCC('p','n','g',' ') )
if( p_dec->fmt_in.i_codec != VLC_FOURCC('p','n','g',' ') &&
p_dec->fmt_in.i_codec != VLC_FOURCC('M','P','N','G') )
{
return VLC_EGENERIC;
}
......@@ -222,6 +223,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
png_destroy_read_struct( &p_png, &p_info, &p_end_info );
free( p_row_pointers );
p_pic->date = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
block_Release( p_block ); *pp_block = NULL;
return p_pic;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment