lavf: free probe data in case we close before probing finished
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Sep 2012 15:33:05 +0000 (17:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Dec 2012 18:36:15 +0000 (19:36 +0100)
Fixes Ticket1634

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 44a7a6300d104dd453bcd5c601e9c6944fb34679)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 05c4b7f..7940037 100644 (file)
@@ -3056,6 +3056,7 @@ void ff_free_stream(AVFormatContext *s, AVStream *st){
     av_freep(&st->codec);
     av_freep(&st->priv_data);
     av_freep(&st->info);
+    av_freep(&st->probe_data.buf);
     av_freep(&s->streams[ --s->nb_streams ]);
 }