Mercurial > libavformat.hg
changeset 4231:07ea426be9a3 libavformat
Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR(ENOMEM)
author | reimar |
---|---|
date | Fri, 16 Jan 2009 15:30:52 +0000 |
parents | de3cb095285c |
children | 5defcf4194fb |
files | aviobuf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/aviobuf.c Fri Jan 16 14:03:46 2009 +0000 +++ b/aviobuf.c Fri Jan 16 15:30:52 2009 +0000 @@ -740,7 +740,7 @@ if (new_allocated_size > d->allocated_size) { d->buffer = av_realloc(d->buffer, new_allocated_size); if(d->buffer == NULL) - return -1234; + return AVERROR(ENOMEM); d->allocated_size = new_allocated_size; } memcpy(d->buffer + d->pos, buf, buf_size);