Also reset *_end in flush_packet_queue().

Originally committed as revision 19869 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Michael Niedermayer 15 years ago
parent 8cd6b388f4
commit 42831b46ef
  1. 2
      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;
}

Loading…
Cancel
Save