x264enc: Don't assume the order of nal unit
authorYeongjin Jeong <yeongjin.jeong@navercorp.com>
Wed, 17 Oct 2018 14:38:22 +0000 (23:38 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 11 Sep 2022 22:34:46 +0000 (23:34 +0100)
commit8ebd8544548a52f298e5002b4b7a802a5a0c8ebf
treed1c20a04381a0390114540b3f19c647b3a973215
parenta9ae28d10b5a245690ea2d157234f2c8f3919d61
x264enc: Don't assume the order of nal unit

Just for extra safety, let's check the index of the nal unit
through the enum value of the nal type provided by x264.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3014>
subprojects/gst-plugins-ugly/ext/x264/gstx264enc.c