summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/seek.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/seek.c b/libavformat/seek.c
index 6a38ba79e5..967f282d51 100644
--- a/libavformat/seek.c
+++ b/libavformat/seek.c
@@ -476,9 +476,8 @@ void ff_restore_parser_state(AVFormatContext *s, AVParserState *state)
static void free_packet_list(AVPacketList *pktl)
{
- AVPacketList *cur;
while (pktl) {
- cur = pktl;
+ AVPacketList *cur = pktl;
pktl = cur->next;
av_free_packet(&cur->pkt);
av_free(cur);