summaryrefslogtreecommitdiff
path: root/tests/api/api-seek-test.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:35:30 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:35:30 +0100
commitc2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 (patch)
treefd5a76e51fa3eb2b90deafbb6c0c48a127be42a9 /tests/api/api-seek-test.c
parent7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff)
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'tests/api/api-seek-test.c')
-rw-r--r--tests/api/api-seek-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c
index 99fe90c242..135b972440 100644
--- a/tests/api/api-seek-test.c
+++ b/tests/api/api-seek-test.c
@@ -143,11 +143,11 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
}
}
}
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
av_init_packet(&pkt);
} while ((!end_of_stream || got_frame) && (no_seeking || (fr->pkt_pts + av_frame_get_pkt_duration(fr) <= ts_end)));
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
av_freep(&byte_buffer);
return 0;