Remove unnecessary calls to av_packet_unref()

av_packet_free() already calls av_packet_unref().
This commit is contained in:
Romain Vimont
2021-07-04 12:19:52 +02:00
parent 5caeab5f6d
commit e9096e3e34
2 changed files with 0 additions and 3 deletions

View File

@@ -51,7 +51,6 @@ record_packet_new(const AVPacket *packet) {
static void
record_packet_delete(struct record_packet *rec) {
av_packet_unref(rec->packet);
av_packet_free(&rec->packet);
free(rec);
}