Browse Source

avformat/seek: move the cur variable into the loop

This improves readability and makes it clear that the freed
value is not used after the end of an iteration

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
96dce6f7ce
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/seek.c

+ 1
- 2
libavformat/seek.c View File

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


Loading…
Cancel
Save