On Thu, Jun 21, 2018 at 12:01:09PM -0700, Jacob Trimble wrote: > On Thu, Jun 21, 2018 at 9:48 AM Michael Niedermayer > <mich...@niedermayer.cc> wrote: > > > > > + if (UINT32_MAX == init_info_count || > > > + UINT32_MAX - *side_data_size < FF_ENCRYPTION_INIT_INFO_EXTRA > > > || > > > + UINT32_MAX - *side_data_size - FF_ENCRYPTION_INIT_INFO_EXTRA > > > < info->system_id_size || > > > + UINT32_MAX - *side_data_size - FF_ENCRYPTION_INIT_INFO_EXTRA > > > - info->system_id_size < info->data_size) { > > > return NULL; > > > + } > > > > you can simplify this with (u)int64_t > > > > Done
> encryption_info.c | 146 > +++++++++++++++++++++++++++++++++++------------------- > encryption_info.h | 5 + > 2 files changed, 100 insertions(+), 51 deletions(-) > 676617bd11d32ea552e0fdb9fcdb2486241ab9f0 > 0001-libavutil-encryption_info-Allow-multiple-init-info-8.patch > From f440fe2be172672c439fa8b216b08a8d0895f76f Mon Sep 17 00:00:00 2001 > From: Jacob Trimble <modma...@google.com> > Date: Mon, 23 Apr 2018 10:33:58 -0700 > Subject: [PATCH] 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 <modma...@google.com> > --- > libavutil/encryption_info.c | 146 +++++++++++++++++++++++------------- > libavutil/encryption_info.h | 5 ++ > 2 files changed, 100 insertions(+), 51 deletions(-) will apply thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are too smart to engage in politics are punished by being governed by those who are dumber. -- Plato
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel