summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-02-17 08:55:36 +0100
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-02-17 09:08:34 +0100
commitc4d8b5c44ca60b2044e3fb9378013f4039c45abb (patch)
tree975eed779114de146e04cf1b5deeb8a621b45b37 /gst-libs
parent566af572afc2a91d58d24cc8630b462c86903d7e (diff)
libs: decoder: h265: set parser info state at decoding codec data
Commit 1168d6d5 showed up a regression: decode_sps() stores the unit's parser info in sps array. If that parser info comes from decoding codec data, that parser info will have an undefined state which might break ensure_sps(). This patch sets the parser info state, at decoding codec data, with the internal parser state. This is similar with h264 decoder apprach. Original-patch-by: Xu Guangxin <guangxin.xu@intel.com>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h265.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
index 5d554fce..100d5539 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c
@@ -2867,6 +2867,9 @@ gst_vaapi_decoder_h265_decode_codec_data (GstVaapiDecoder *
goto cleanup;
}
+ pi->state = priv->parser_state;
+ pi->flags = 0;
+
switch (pi->nalu.type) {
case GST_H265_NAL_VPS:
status = parse_vps (decoder, &unit);