[FFmpeg-cvslog] avpacket: use ERANGE instead of EOVERFLOW
Anton Khirnov
git at videolan.org
Thu Dec 17 14:52:41 CET 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Dec 6 10:59:51 2015 +0100| [68e547ae8b455e5e2b60839f35c359d77a6d94bc] | committer: Anton Khirnov
avpacket: use ERANGE instead of EOVERFLOW
EOVERFLOW seems to be unavailable on certain platforms.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=68e547ae8b455e5e2b60839f35c359d77a6d94bc
---
libavcodec/avpacket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index f8268b9..87454d5 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));
More information about the ffmpeg-cvslog
mailing list