mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
3f56224a9a
commit
96dce6f7ce
@ -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…
Reference in New Issue
Block a user