diff options
author | Niklas Haas <git@haasn.dev> | 2024-03-23 16:29:12 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-04-03 16:16:53 +0200 |
commit | b90c18b38c223e52b852e7156dd5bf1f59200ee7 (patch) | |
tree | 75e5e72ed6ee9a029b3fe41466a6db3616d50321 /libavcodec/dovi_rpu.h | |
parent | a6c624f8f76446918a2e03404ec251f0cea98604 (diff) | |
download | ffmpeg-b90c18b38c223e52b852e7156dd5bf1f59200ee7.tar.gz |
avcodec/dovi_rpu: verify RPU data CRC32
The Dolby Vision RPU contains a CRC32 to validate the payload against.
The implementation is CRC32/MPEG-2.
The CRC is only verified with the AV_EF_CRCCHECK flag.
Co-authored-by: quietvoid <tcChlisop0@gmail.com>
Diffstat (limited to 'libavcodec/dovi_rpu.h')
-rw-r--r-- | libavcodec/dovi_rpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/dovi_rpu.h b/libavcodec/dovi_rpu.h index 755171c923..8dcc65bb40 100644 --- a/libavcodec/dovi_rpu.h +++ b/libavcodec/dovi_rpu.h @@ -79,7 +79,8 @@ void ff_dovi_update_cfg(DOVIContext *s, const AVDOVIDecoderConfigurationRecord * * * Returns 0 or an error code. */ -int ff_dovi_rpu_parse(DOVIContext *s, const uint8_t *rpu, size_t rpu_size); +int ff_dovi_rpu_parse(DOVIContext *s, const uint8_t *rpu, size_t rpu_size, + int err_recognition); /** * Attach the decoded AVDOVIMetadata as side data to an AVFrame. |