h265parser: select the right profile for high throughput SCC stream
authorHaihao Xiang <haihao.xiang@intel.com>
Fri, 5 Jun 2020 05:01:06 +0000 (13:01 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Sep 2020 16:51:45 +0000 (16:51 +0000)
commit626af12498c940183572004ea96a48eb3432d2f5
tree11417bfd53d64e0132ae6725267dda56d7214cf3
parent2f5904c20d61fd75a8a8c30ec790f276c35df4b8
h265parser: select the right profile for high throughput SCC stream

Currently screen-extended-high-throughput-444 is recognized as
screen-extended-main-444, screen-extended-high-throughput-444-10 is
recognized as screen-extended-main-444-10 because they have the same
extension flags, so without this patch, it is possible that a decoder
which supports SCC but doesn't support throughput SCC will try to decode
a throughput SCC stream.

e.g.
https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/SCC/HT_A_SCC_Apple_2.zip

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1328>
gst-libs/gst/codecparsers/gsth265parser.c
tests/check/libs/h265parser.c