From b86c5757a2bf2a589b3982d6b85401165deb4958 Mon Sep 17 00:00:00 2001 From: Jacob Trimble Date: Mon, 23 Apr 2018 10:33:58 -0700 Subject: libavutil/encryption_info: Allow multiple init info. It is possible for there to be multiple encryption init info structure. For example, to support multiple key systems or in key rotation. This changes the AVEncryptionInitInfo struct to be a linked list so there can be multiple structs without breaking ABI. Signed-off-by: Jacob Trimble Signed-off-by: Michael Niedermayer --- libavutil/encryption_info.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavutil/encryption_info.h') diff --git a/libavutil/encryption_info.h b/libavutil/encryption_info.h index ec5501aac7..9140968fde 100644 --- a/libavutil/encryption_info.h +++ b/libavutil/encryption_info.h @@ -115,6 +115,11 @@ typedef struct AVEncryptionInitInfo { */ uint8_t* data; uint32_t data_size; + + /** + * An optional pointer to the next initialization info in the list. + */ + struct AVEncryptionInitInfo *next; } AVEncryptionInitInfo; /** -- cgit v1.2.3