forked from FFmpeg/FFmpeg
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
This commit is contained in:
parent
9d9aac84f6
commit
7ce820efa0
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,7 @@ static int dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
|
||||||
if (new_allocated_size > d->allocated_size) {
|
if (new_allocated_size > d->allocated_size) {
|
||||||
d->buffer = av_realloc(d->buffer, new_allocated_size);
|
d->buffer = av_realloc(d->buffer, new_allocated_size);
|
||||||
if(d->buffer == NULL)
|
if(d->buffer == NULL)
|
||||||
return -1234;
|
return AVERROR(ENOMEM);
|
||||||
d->allocated_size = new_allocated_size;
|
d->allocated_size = new_allocated_size;
|
||||||
}
|
}
|
||||||
memcpy(d->buffer + d->pos, buf, buf_size);
|
memcpy(d->buffer + d->pos, buf, buf_size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue