Commit 900fff89 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '44127b15'

* commit '44127b15':
  rtmppkt: Make pkt->data reallocable
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 42a095d0 44127b15
......@@ -396,7 +396,7 @@ int ff_rtmp_packet_create(RTMPPacket *pkt, int channel_id, RTMPPacketType type,
int timestamp, int size)
{
if (size) {
pkt->data = av_malloc(size);
pkt->data = av_realloc(NULL, size);
if (!pkt->data)
return AVERROR(ENOMEM);
}
......
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