diff options
author | Cosmin Stejerean <cosmin@cosmin.at> | 2024-06-24 15:56:12 +0000 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-06-24 18:05:20 +0200 |
commit | c3814d54098a3148486819834edbef4adbfd0426 (patch) | |
tree | 417e42ad96d271c4ef897c30c24eb9267d0e4f52 | |
parent | 77ab1c773c6a12e0dd907b52504798bad66792b9 (diff) | |
download | ffmpeg-c3814d54098a3148486819834edbef4adbfd0426.tar.gz |
avcodec/dovi_rpudec: fix reading el_bit_depth_minus8
now that we are reading ext_mapping_idc as the upper 8 bits of
el_bit_depth_minus8 we need to use get_ue_golomb_long rather than
get_ue_golomb_31 for reading it
-rw-r--r-- | libavcodec/dovi_rpudec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dovi_rpudec.c b/libavcodec/dovi_rpudec.c index 8cafdcf5e6..c025800206 100644 --- a/libavcodec/dovi_rpudec.c +++ b/libavcodec/dovi_rpudec.c @@ -420,7 +420,7 @@ int ff_dovi_rpu_parse(DOVIContext *s, const uint8_t *rpu, size_t rpu_size, if ((hdr->rpu_format & 0x700) == 0) { int bl_bit_depth_minus8 = get_ue_golomb_31(gb); - int el_bit_depth_minus8 = get_ue_golomb_31(gb); + int el_bit_depth_minus8 = get_ue_golomb_long(gb); int vdr_bit_depth_minus8 = get_ue_golomb_31(gb); int reserved_zero_3bits; /* ext_mapping_idc is in the upper 8 bits of el_bit_depth_minus8 */ |