libs: encoder: h264: initialize all elements of view_ids
authorHyunjun Ko <zzoon@igalia.com>
Thu, 29 Jun 2017 03:50:26 +0000 (12:50 +0900)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 4 Jul 2017 11:27:56 +0000 (13:27 +0200)
commit9b73b31c7a0bd99792e59438f962c5100358e311
treed6ebfbca3846c6366493cdbc042567f5652b26c4
parent5b38e7fbe2165276af3aabe126e9747cf850a599
libs: encoder: h264: initialize all elements of view_ids

Currently when num_views is changed by multiview-mode on sink caps, it produces
wrong MVC encoded stream since the array view_ids is not set properly according
to changed num_views.

So this patch initializes all of the array sequentially to handle this case.
Side effect is not going to happen by this patch since this array is being
handled by num_views.

https://bugzilla.gnome.org/show_bug.cgi?id=784321
gst-libs/gst/vaapi/gstvaapiencoder_h264.c