Commit 74b8fa10 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '68e547ae'

* commit '68e547ae':
  avpacket: use ERANGE instead of EOVERFLOW
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents ea1000b9 68e547ae
......@@ -280,7 +280,7 @@ int av_packet_add_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
int elems = pkt->side_data_elems;
if ((unsigned)elems + 1 > INT_MAX / sizeof(*pkt->side_data))
return AVERROR(EOVERFLOW);
return AVERROR(ERANGE);
pkt->side_data = av_realloc(pkt->side_data,
(elems + 1) * sizeof(*pkt->side_data));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment