[FFmpeg-devel] [PATCH 1/2] avformat/utils: avoid unsigned integer overflows
Nicolas George
george at nsup.org
Sat Feb 15 18:33:01 EET 2020
Marton Balint (12020-02-15):
> > + if (s->nb_streams)
> > for (i = s->nb_streams - 1; i >= 0; i--)
> Maybe rewrite the loop instead?
> for (i = s->nb_streams; i-- > 0;)
Or
for (i = s->nb_streams - 1; i < s->nb_streams; i--)
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200215/70010f33/attachment.sig>
More information about the ffmpeg-devel
mailing list