mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
avcodec/dovi_rpudec: sanitize DM data before decoding
Some DM types do not fill the whole struct, so just clear it entirely before going filling the decoded values. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
32755a355d
commit
6f7c05d303
@ -323,6 +323,7 @@ static int parse_ext_blocks(DOVIContext *s, GetBitContext *gb, int ver,
|
||||
dm = &ext->dm_dynamic[ext->num_dynamic++];
|
||||
}
|
||||
|
||||
memset(dm, 0, sizeof(*dm));
|
||||
dm->level = level;
|
||||
switch (ver) {
|
||||
case 1: ret = parse_ext_v1(s, gb, dm); break;
|
||||
|
Loading…
Reference in New Issue
Block a user