repositories
/
deb_ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git]
/
ffmpeg
/
libavformat
/
rtmppkt.c
diff --git
a/ffmpeg/libavformat/rtmppkt.c
b/ffmpeg/libavformat/rtmppkt.c
index 92172dc366012479f86496609e9bfcaa7eaff6a1..4f79487ee078026348d2a0bd440c15a97cae23f8 100644
(file)
--- a/
ffmpeg/libavformat/rtmppkt.c
+++ b/
ffmpeg/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) {
int timestamp, int size)
{
if (size) {
- pkt->data = av_
malloc(
size);
+ pkt->data = av_
realloc(NULL,
size);
if (!pkt->data)
return AVERROR(ENOMEM);
}
if (!pkt->data)
return AVERROR(ENOMEM);
}