vformat/utils: call flush_packet_queue() from avformat_free_context()

This avoids some theoretical memleaks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-15 19:48:28 +02:00
parent 609d5db803
commit 9c712d0b16
1 changed files with 1 additions and 1 deletions

View File

@ -3525,7 +3525,7 @@ void avformat_free_context(AVFormatContext *s)
av_dict_free(&s->metadata);
av_freep(&s->streams);
av_freep(&s->internal);
free_packet_buffer(&s->packet_buffer, &s->packet_buffer_end);
flush_packet_queue(s);
av_free(s);
}