diff options
author | James Almer <jamrial@gmail.com> | 2021-01-29 11:55:40 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 15:19:16 -0300 |
commit | 5e518c741661f8663e89048d25edce288219f980 (patch) | |
tree | 589dc07605dfb4cd31b834a496fae32194524b85 /libavformat/rtpdec.c | |
parent | e7f1540507a5e82fcc1d1a78fc04519e9c9aea7e (diff) | |
download | ffmpeg-5e518c741661f8663e89048d25edce288219f980.tar.gz |
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.c | 2 |
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; |