h26xparse: Handle state change on IDR first slice
authorStéphane Cerveau <scerveau@collabora.com>
Tue, 17 Dec 2019 11:08:34 +0000 (12:08 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 7 Jan 2020 08:55:28 +0000 (08:55 +0000)
commit4b8c47ee3795216cdae4957b45499a61806aa456
treed6683cba397f5c681590b6317dea2cbae4ad9836
parentd414e90efff17ec6c00d6cefe009098fc25ebb07
h26xparse: Handle state change on IDR first slice

As the H265/H264 bitstream can support multiple slices,
mastering_display_info_state and content_light_level_state
should be changed only on first slice segment.

Fix #1152
gst/videoparsers/gsth264parse.c
gst/videoparsers/gsth265parse.c