summaryrefslogtreecommitdiff
path: root/libavformat/rtmppkt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-28 12:14:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-28 12:14:26 +0100
commit900fff89c9ede6ecd549397384007890fd8c8c6c (patch)
treeb834396f9fba03d550e6b0eccee9dc0d2c2496ec /libavformat/rtmppkt.c
parent42a095d095b597dd855d843138bfda2d4ea36368 (diff)
parent44127b157e9f8acb837d4bb3a094f56b40da3ef5 (diff)
downloadffmpeg-900fff89c9ede6ecd549397384007890fd8c8c6c.tar.gz
Merge commit '44127b157e9f8acb837d4bb3a094f56b40da3ef5'
* commit '44127b157e9f8acb837d4bb3a094f56b40da3ef5': rtmppkt: Make pkt->data reallocable Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtmppkt.c')
-rw-r--r--libavformat/rtmppkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index 92172dc366..4f79487ee0 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
@@ -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);
}