mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-18 22:55:12 +08:00
Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
@@ -219,7 +219,7 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (c->gmcsize)
|
||||
memcpy(pkt->data + 2, c->gmc, c->gmcsize);
|
||||
if (avio_read(s->pb, pkt->data + 2 + c->gmcsize, size) != size) {
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
pkt->stream_index = 0;
|
||||
|
Reference in New Issue
Block a user