Skip to content
Snippets Groups Projects
Commit 900fff89 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '44127b15'


* commit '44127b15':
  rtmppkt: Make pkt->data reallocable

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents 42a095d0 44127b15
No related branches found
No related tags found
No related merge requests found
...@@ -396,7 +396,7 @@ int ff_rtmp_packet_create(RTMPPacket *pkt, int channel_id, RTMPPacketType type, ...@@ -396,7 +396,7 @@ int ff_rtmp_packet_create(RTMPPacket *pkt, int channel_id, RTMPPacketType type,
int timestamp, int size) int timestamp, int size)
{ {
if (size) { if (size) {
pkt->data = av_malloc(size); pkt->data = av_realloc(NULL, size);
if (!pkt->data) if (!pkt->data)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment