On 11/23/2016 12:39 AM, Luca Barbato wrote: > On 22/11/2016 23:16, Vittorio Giovara wrote: >> - tmp = av_realloc_array(st->side_data, st->nb_side_data + 1, >> sizeof(*tmp)); >> + if ((unsigned) st->nb_side_data + 1 >= INT_MAX / sizeof(*st->side_data)) >> + return AVERROR(ERANGE); >> + >> + tmp = av_realloc(st->side_data, (st->nb_side_data + 1) * sizeof(*tmp)); > > Why that?
To make av_stream_add_side_data return error codes consistent with av_packet_add_side_data's. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
