Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
@@ -479,7 +479,7 @@ bitmap_end_skip:
|
||||
if ((res = av_new_packet(pkt, len)) < 0)
|
||||
return res;
|
||||
if (avio_read(pb, pkt->data, 4) != 4) {
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
if (AV_RB32(pkt->data) == 0xffd8ffd9 ||
|
||||
@@ -496,7 +496,7 @@ bitmap_end_skip:
|
||||
}
|
||||
if (res != pkt->size) {
|
||||
if (res < 0) {
|
||||
av_free_packet(pkt);
|
||||
av_packet_unref(pkt);
|
||||
return res;
|
||||
}
|
||||
av_shrink_packet(pkt, res);
|
||||
|
Reference in New Issue
Block a user