codecparsers: h265parser: Correct the read of slice_sao_chroma_flag.
authorHe Junyan <junyan.he@intel.com>
Mon, 3 Jan 2022 14:15:12 +0000 (22:15 +0800)
committerHe Junyan <junyan.he@intel.com>
Tue, 4 Jan 2022 01:53:25 +0000 (09:53 +0800)
commite1f9c6d5598904f640c3aa14b52fbac2a77941d7
tree2a63f217624a0e45cf3d438a29d0548df790d6a9
parentccf64e369e88f307c68879434f8e6c940aab3cb3
codecparsers: h265parser: Correct the read of slice_sao_chroma_flag.

According to the SPEC, for parsing the slice header, we should read the
slice_sao_chroma_flag only when ChromaArrayType is not equal to 0.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1488>
subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c