vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Nov 16 11:44:47 2018 +0100| [ddc0135750f344249f695b019a09c3c8a624eaa5] | committer: Francois Cartegnie
demux: heif: fix broken mime case handling > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ddc0135750f344249f695b019a09c3c8a624eaa5 --- modules/demux/mp4/heif.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/demux/mp4/heif.c b/modules/demux/mp4/heif.c index aa99f9e24c..91a6819754 100644 --- a/modules/demux/mp4/heif.c +++ b/modules/demux/mp4/heif.c @@ -279,10 +279,15 @@ static int DemuxHEIF( demux_t *p_demux ) if( psz_mime ) { if( !strcasecmp( "image/jpeg", psz_mime ) ) + { es_format_Init( &fmt, VIDEO_ES, VLC_CODEC_JPEG ); + break; + } else if( !strcasecmp( "image/avif", psz_mime ) ) + { es_format_Init( &fmt, VIDEO_ES, VLC_CODEC_AV1 ); - break; + break; + } } return VLC_DEMUXER_SUCCESS; /* Unsupported picture, goto next */ } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
