Browse Source

hls: Free packets when skipping packets when seeking

This fixes memory leaks present since 2b3d041cdc.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.1
Martin Storsjö 12 years ago
parent
commit
06205b5efd
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/hls.c

+ 2
- 0
libavformat/hls.c View File

@@ -651,6 +651,8 @@ start:
c->seek_timestamp = AV_NOPTS_VALUE;
break;
}
av_free_packet(&var->pkt);
reset_packet(&var->pkt);
}
}
/* Check if this stream still is on an earlier segment number, or


Loading…
Cancel
Save