Commit 809c2948 authored by Francois Cartegnie's avatar Francois Cartegnie

codec: mediacodec: missing hvcC check before conversion

parent bee38da8
......@@ -320,7 +320,8 @@ static int ParseVideoExtra(decoder_t *p_dec, uint8_t *p_extra, int i_extra)
H264SetCSD(p_dec, p_buf, size, NULL);
} else
{
if (hevc_hvcC_to_AnnexB_NAL(p_dec, p_extra, i_extra,
if ( hevc_ishvcC(p_extra, i_extra) &&
hevc_hvcC_to_AnnexB_NAL(p_dec, p_extra, i_extra,
p_buf, buf_size, &size,
&p_sys->u.video.i_nal_length_size) == VLC_SUCCESS)
{
......
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