Commit 5e4a5726 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '24a36256'

* commit '24a36256':
  buffer: fix av_buffer_realloc() when the data is offset wrt buffer start
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 5dd7ea9f 24a36256
...@@ -191,7 +191,7 @@ int av_buffer_realloc(AVBufferRef **pbuf, int size) ...@@ -191,7 +191,7 @@ int av_buffer_realloc(AVBufferRef **pbuf, int size)
return 0; return 0;
if (!(buf->buffer->flags & BUFFER_FLAG_REALLOCATABLE) || if (!(buf->buffer->flags & BUFFER_FLAG_REALLOCATABLE) ||
!av_buffer_is_writable(buf)) { !av_buffer_is_writable(buf) || buf->data != buf->buffer->data) {
/* cannot realloc, allocate a new reallocable buffer and copy data */ /* cannot realloc, allocate a new reallocable buffer and copy data */
AVBufferRef *new = NULL; AVBufferRef *new = NULL;
......
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