summaryrefslogtreecommitdiff
path: root/tests/api/api-band-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api/api-band-test.c')
-rw-r--r--tests/api/api-band-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c
index d0dee64ef8..8644e7df9e 100644
--- a/tests/api/api-band-test.c
+++ b/tests/api/api-band-test.c
@@ -190,12 +190,12 @@ static int video_decode(const char *input_filename)
return -1;
}
}
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
av_init_packet(&pkt);
}
} while (!end_of_stream || got_frame);
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
av_frame_free(&fr);
avcodec_close(ctx);
avformat_close_input(&fmt_ctx);