mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
decoder: h265: handle the SEI NAL units included in codec_data
The prefix/suffix SEI nal units can appear in codec_data too which weren't handled before. Parse these SEI headers to fix the segfault. https://bugzilla.gnome.org/show_bug.cgi?id=768544
This commit is contained in:
parent
b138e5e042
commit
d9ef88230f
1 changed files with 10 additions and 0 deletions
|
@ -2696,6 +2696,16 @@ gst_vaapi_decoder_h265_decode_codec_data (GstVaapiDecoder *
|
||||||
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
break;
|
break;
|
||||||
|
case GST_H265_NAL_SUFFIX_SEI:
|
||||||
|
case GST_H265_NAL_PREFIX_SEI:
|
||||||
|
status = parse_sei (decoder, &unit);
|
||||||
|
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||||
|
goto cleanup;
|
||||||
|
status = decode_sei (decoder, &unit);
|
||||||
|
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||||
|
goto cleanup;
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
ofs = pi->nalu.offset + pi->nalu.size;
|
ofs = pi->nalu.offset + pi->nalu.size;
|
||||||
gst_vaapi_parser_info_h265_replace (&pi, NULL);
|
gst_vaapi_parser_info_h265_replace (&pi, NULL);
|
||||||
|
|
Loading…
Reference in a new issue