Merge commit '44127b157e
'
* commit '44127b157e
':
rtmppkt: Make pkt->data reallocable
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
900fff89c9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue