summaryrefslogtreecommitdiffstats
path: root/libavformat/sbgdec.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-12-17 22:43:34 +0100
committerNicolas George <nicolas.george@normalesup.org>2011-12-17 22:43:34 +0100
commit9cb6a39c461abc8d3dd79dc5a59243038664fb65 (patch)
tree00c5ea42aaee58cc049b0c21a0ac3389e8d0410b /libavformat/sbgdec.c
parent56bf2c2a192523e1d0f2328bd755e63b4a0a79f8 (diff)
downloadffmpeg-streaming-9cb6a39c461abc8d3dd79dc5a59243038664fb65.zip
ffmpeg-streaming-9cb6a39c461abc8d3dd79dc5a59243038664fb65.tar.gz
sbgdec: replace EOVERFLOW with ENOMEM.
This should fix track issue #781, regarding compilation with i686-w64-mingw32-gcc.
Diffstat (limited to 'libavformat/sbgdec.c')
-rw-r--r--libavformat/sbgdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index 2ec8702..da4bb6c 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -1331,7 +1331,7 @@ static int encode_intervals(struct sbg_script *s, AVCodecContext *avc,
edata_size += inter->inter[i].type == WS_SINE ? 44 :
inter->inter[i].type == WS_NOISE ? 32 : 0;
if (edata_size < 0)
- return AVERROR(EOVERFLOW);
+ return AVERROR(ENOMEM);
}
edata = av_malloc(edata_size);
if (!edata)
OpenPOWER on IntegriCloud