mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
decoder: h264: fix inter-view references array growth.
Let the utility layer handle dynamic growth of the inter-view pictures array. By definition, setting a new size to the array will effectively grow the array, but would also fill in the newly created elements with empty entries (NULL), thus also increasing the reported length, which is not correct.
This commit is contained in:
parent
60af04901f
commit
e8fe78824b
1 changed files with 1 additions and 3 deletions
|
@ -977,9 +977,7 @@ mvc_reset(GstVaapiDecoderH264 *decoder)
|
|||
guint i;
|
||||
|
||||
// Resize array of inter-view references
|
||||
if (priv->inter_views)
|
||||
g_ptr_array_set_size(priv->inter_views, priv->max_views);
|
||||
else {
|
||||
if (!priv->inter_views) {
|
||||
priv->inter_views = g_ptr_array_new_full(priv->max_views,
|
||||
(GDestroyNotify)unref_inter_view);
|
||||
if (!priv->inter_views)
|
||||
|
|
Loading…
Reference in a new issue