Merge commit '44127b157e9f8acb837d4bb3a094f56b40da3ef5'
* commit '44127b157e9f8acb837d4bb3a094f56b40da3ef5': rtmppkt: Make pkt->data reallocable Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
900fff89c9
@ -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…
x
Reference in New Issue
Block a user