Commit 153a0123 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '6cf27b55' into release/2.4

* commit '6cf27b55':
  aviobuf: check context before using it

See: 7441d1ecMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d6f4e475 6cf27b55
......@@ -1098,7 +1098,6 @@ int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
*pbuffer = NULL;
return 0;
}
d = s->opaque;
/* don't attempt to pad fixed-size packet buffers */
if (!s->max_packet_size) {
......@@ -1108,6 +1107,7 @@ int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
avio_flush(s);
d = s->opaque;
*pbuffer = d->buffer;
size = d->size;
av_free(d);
......
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