mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
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>
This commit is contained in:
parent
566af572af
commit
c4d8b5c44c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue