libs: decoder: h264: reset context when the number of view is increased

Usually in case of MVC decoding, dpb size is increasedi if subset sps.
That's why it resets context without this patch.
But for some media it doesn't increase dpb size. Even in this case we
should reset context to deal with MVC decoding.
Otherwise, it leads to assert.

https://bugzilla.gnome.org/show_bug.cgi?id=787124
This commit is contained in:
Hyunjun Ko 2017-09-14 14:25:41 +09:00 committed by Nicolas Dufresne
parent 06aa82f989
commit 038c62011f

View file

@ -1514,6 +1514,7 @@ ensure_context (GstVaapiDecoderH264 * decoder, GstH264SPS * sps)
num_views = get_num_views (sps);
if (priv->max_views < num_views) {
priv->max_views = num_views;
reset_context = TRUE;
GST_DEBUG ("maximum number of views changed to %u", num_views);
}