ffmpeg | branch: master | Martin Storsjö <mar...@martin.st> | Mon Nov 24 10:41:34 2014 +0200| [44127b157e9f8acb837d4bb3a094f56b40da3ef5] | committer: Martin Storsjö
rtmppkt: Make pkt->data reallocable We try to avoid mixing av_malloc with av_realloc, since av_malloc may be implemented with functions that can't (formally) be mixed with the functions used in av_realloc. Signed-off-by: Martin Storsjö <mar...@martin.st> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44127b157e9f8acb837d4bb3a094f56b40da3ef5 --- libavformat/rtmppkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index 37fbb5f..e952091 100644 --- a/libavformat/rtmppkt.c +++ b/libavformat/rtmppkt.c @@ -395,7 +395,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); } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog