Commit b0d6d155 authored by reimar's avatar reimar

Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR(ENOMEM)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16633 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f2721a9d
......@@ -740,7 +740,7 @@ static int dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment