From 42831b46ef03f00b86bf13c509a5e9b01b3fe457 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 16 Sep 2009 00:56:31 +0000 Subject: [PATCH] Also reset *_end in flush_packet_queue(). Originally committed as revision 19869 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 59fefd2913..0a88c80e5b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1112,6 +1112,8 @@ static void flush_packet_queue(AVFormatContext *s) av_free_packet(&pktl->pkt); av_free(pktl); } + s->packet_buffer_end= + s->raw_packet_buffer_end= NULL; s->raw_packet_buffer_remaining_size = RAW_PACKET_BUFFER_SIZE; }