Limin Wang
a487635b85
avcodec/dynamic_hdr10_plus: check size before using it
...
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2021-09-22 09:25:25 +08:00
Limin Wang
4c079636ab
avcodec/dynamic_hdr10_plus: use AVERROR_INVALIDDATA instead of AVERROR(EINVAL)
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2021-09-22 09:25:25 +08:00
James Almer
c369ceb244
avcodec/dynamic_hdr10_plus: remove unused const variables
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-12-07 14:28:50 -03:00
James Almer
1aa72fe794
avcodec/dynamic_hdr10_plus: don't take a GetBitContext as input argument
...
Create a local one instead from a byte buffer input argument.
This prevents skipping bytes that may belong to another SEI message.
Signed-off-by: James Almer <jamrial@gmail.com>
2020-12-07 14:22:52 -03:00
James Almer
7a170bd6c1
avcodec/dynamic_hdr10_plus: use get_bits_long() where needed
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-12-06 13:56:05 -03:00
Mohammad Izadi
afbc6852b4
avcodec/hevc_sei: add support for HDR10+ metadata
...
Signed-off-by: James Almer <jamrial@gmail.com>
2020-12-05 19:19:54 -03:00