Commit 62aec0c2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'fe0f4e56'

* commit 'fe0f4e56':
  avpacket: Check buffer reference

Conflicts:
	libavcodec/avpacket.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7a7b77e6 fe0f4e56
......@@ -548,8 +548,10 @@ int av_packet_ref(AVPacket *dst, const AVPacket *src)
memcpy(dst->buf->data, src->data, src->size);
} else {
dst->buf = av_buffer_ref(src->buf);
if (!dst->buf)
if (!dst->buf) {
ret = AVERROR(ENOMEM);
goto fail;
}
}
dst->size = src->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