mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
decoder: h264: fix uninitialized variables in avcC mode.
Fix uninitialized variables when decoding SPS and PPS NAL units from "codec-data" buffers. This is particularly important when seeking ops are involved, and the new persistent states are used more often. https://bugzilla.gnome.org/show_bug.cgi?id=750094
This commit is contained in:
parent
2492afa86c
commit
d2791a7844
1 changed files with 6 additions and 0 deletions
|
@ -4285,6 +4285,9 @@ gst_vaapi_decoder_h264_decode_codec_data(GstVaapiDecoder *base_decoder,
|
|||
goto cleanup;
|
||||
ofs = pi->nalu.offset + pi->nalu.size;
|
||||
|
||||
pi->state = priv->parser_state;
|
||||
pi->flags = 0;
|
||||
|
||||
status = decode_sps(decoder, &unit);
|
||||
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||
goto cleanup;
|
||||
|
@ -4315,6 +4318,9 @@ gst_vaapi_decoder_h264_decode_codec_data(GstVaapiDecoder *base_decoder,
|
|||
goto cleanup;
|
||||
ofs = pi->nalu.offset + pi->nalu.size;
|
||||
|
||||
pi->state = priv->parser_state;
|
||||
pi->flags = 0;
|
||||
|
||||
status = decode_pps(decoder, &unit);
|
||||
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||
goto cleanup;
|
||||
|
|
Loading…
Reference in a new issue