1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

sbgdec: replace EOVERFLOW with ENOMEM.

This should fix track issue #781, regarding compilation with
i686-w64-mingw32-gcc.
This commit is contained in:
Nicolas George 2011-12-17 22:43:34 +01:00
parent 56bf2c2a19
commit 9cb6a39c46

View File

@ -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)