aboutsummaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorReimar Döffinger2009-01-16 15:30:52 +0000
committerReimar Döffinger2009-01-16 15:30:52 +0000
commit7ce820efa09a3281e55e1ff694b14c2291ec6087 (patch)
treeecb6128b2e67a9fd9064423d853955d1b45df470 /libavformat/aviobuf.c
parent9d9aac84f6b7aa1606a3d3682dd7df3bde7ef5be (diff)
Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR(ENOMEM)
Originally committed as revision 16633 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index aa6ad87dec..15328d3fbe 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -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);