diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-12-06 10:59:51 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-12-07 11:42:26 +0100 |
commit | 68e547ae8b455e5e2b60839f35c359d77a6d94bc (patch) | |
tree | affe1cefaa8d20c0f6cce59aa838e59311ddbc89 /libavcodec/avpacket.c | |
parent | d5f5c90be9ec120f1320dcdd808b7bd917dee47c (diff) | |
download | ffmpeg-68e547ae8b455e5e2b60839f35c359d77a6d94bc.tar.gz |
avpacket: use ERANGE instead of EOVERFLOW
EOVERFLOW seems to be unavailable on certain platforms.
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r-- | libavcodec/avpacket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index f8268b9401..87454d5647 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -243,7 +243,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)); |