[FFmpeg-devel] libavutil/encryption_info: Allow multiple init info.

Jacob Trimble modmaker at google.com
Thu Jun 21 22:01:09 EEST 2018


On Thu, Jun 21, 2018 at 9:48 AM Michael Niedermayer
<michael at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavutil-encryption_info-Allow-multiple-init-info-8.patch
Type: text/x-patch
Size: 8578 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180621/f1ca31b5/attachment.bin>


More information about the ffmpeg-devel mailing list