Commit af3727e2 authored by Mark Thompson's avatar Mark Thompson

Merge commit '0e4c166c'

* commit '0e4c166c':
  cbs_h2645: Remove active ps references when it is replaced
Merged-by: 's avatarMark Thompson <sw@jkqxz.net>
parents 1325ac4c 0e4c166c
......@@ -674,6 +674,8 @@ static int cbs_h26 ## h26n ## _replace_ ## ps_var(CodedBitstreamContext *ctx, \
" id : %d.\n", id); \
return AVERROR_INVALIDDATA; \
} \
if (priv->ps_var[id] == priv->active_ ## ps_var) \
priv->active_ ## ps_var = NULL ; \
av_freep(&priv->ps_var[id]); \
priv->ps_var[id] = av_malloc(sizeof(*ps_var)); \
if (!priv->ps_var[id]) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment