Replace remaining occurances of av_free_packet with av_packet_unref

This commit is contained in:
Hendrik Leppkes
2015-10-27 14:35:30 +01:00
parent 7f5af80ba4
commit c2f861ca42
59 changed files with 99 additions and 99 deletions

View File

@@ -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);