Browse Source

Merge commit '44127b157e9f8acb837d4bb3a094f56b40da3ef5'

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

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
900fff89c9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtmppkt.c

+ 1
- 1
libavformat/rtmppkt.c View File

@@ -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);
} }


Loading…
Cancel
Save