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
Fixes: #223 (closed)
Edited by Víctor Manuel Jáquez Leal