mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-26 01:04:45 +08:00
Merge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'
* commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457': avpacket: Replace av_free_packet with av_packet_unref Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
@@ -217,7 +217,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,
|
||||
av_freep(&qt->pkt.data);
|
||||
qt->pkt.data = av_realloc(NULL, qt->remaining * qt->bytes_per_frame);
|
||||
if (!qt->pkt.data) {
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
qt->pkt.size = qt->remaining * qt->bytes_per_frame;
|
||||
|
||||
Reference in New Issue
Block a user