aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-11-11 16:10:10 -0300
committerJames Almer <jamrial@gmail.com>2024-11-11 16:10:10 -0300
commit24141a714093f6a662e922ec38e361f2ec1446b7 (patch)
treec5a09b2b20d43f487dd1cb25ddf4a9232720cd43
parent91b6ba653e44f7e911fac848a32c9c431d47c433 (diff)
downloadffmpeg-24141a714093f6a662e922ec38e361f2ec1446b7.tar.gz
avcodec/h2645_sei: fix parsing AOM grain provider_oriented_code
The value is 16 bits big endian, not a single byte. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/h2645_sei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h2645_sei.c b/libavcodec/h2645_sei.c
index c46a563308..e36f325934 100644
--- a/libavcodec/h2645_sei.c
+++ b/libavcodec/h2645_sei.c
@@ -243,7 +243,7 @@ static int decode_registered_user_data(H2645SEI *h, GetByteContext *gb,
if (bytestream2_get_bytes_left(gb) < 2)
return AVERROR_INVALIDDATA;
- provider_oriented_code = bytestream2_get_byteu(gb);
+ provider_oriented_code = bytestream2_get_be16u(gb);
if (provider_oriented_code == aom_grain_provider_oriented_code) {
return ff_aom_parse_film_grain_sets(&h->aom_film_grain,
gb->buffer,