mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
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:
parent
06aa82f989
commit
038c62011f
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue