hls: Free packets when skipping packets when seeking
authorMartin Storsjö <martin@martin.st>
Mon, 29 Jul 2013 08:27:44 +0000 (11:27 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 29 Jul 2013 17:15:50 +0000 (20:15 +0300)
This fixes memory leaks present since 2b3d041cdc.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/hls.c

index 0c836c7..9aef5e0 100644 (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