Browse Source

sbgdec: replace EOVERFLOW with ENOMEM.

This should fix track issue #781, regarding compilation with
i686-w64-mingw32-gcc.
tags/n0.10
Nicolas George 13 years ago
parent
commit
9cb6a39c46
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/sbgdec.c

+ 1
- 1
libavformat/sbgdec.c 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)


Loading…
Cancel
Save