summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-01-29 11:55:40 -0300
committerJames Almer <jamrial@gmail.com>2021-03-17 15:19:16 -0300
commit5e518c741661f8663e89048d25edce288219f980 (patch)
tree589dc07605dfb4cd31b834a496fae32194524b85 /libavformat/rtpdec.c
parente7f1540507a5e82fcc1d1a78fc04519e9c9aea7e (diff)
avformat/rtpdec: use av_packet_alloc() to allocate packets
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index d592e34893..fd4601e654 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -964,7 +964,7 @@ int ff_parse_fmtp(AVFormatContext *s,
int ff_rtp_finalize_packet(AVPacket *pkt, AVIOContext **dyn_buf, int stream_idx)
{
int ret;
- av_init_packet(pkt);
+ av_packet_unref(pkt);
pkt->size = avio_close_dyn_buf(*dyn_buf, &pkt->data);
pkt->stream_index = stream_idx;