Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
@@ -148,7 +148,7 @@ static int redspark_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
|
||||
ret = av_get_packet(s->pb, pkt, size);
|
||||
if (ret != size) {
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return AVERROR(EIO);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user