diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-27 23:02:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-27 23:03:07 +0200 |
commit | 0f943ed3c8e5839db61958a59300c866680ece3d (patch) | |
tree | 10d5ef18120987eb41791b455a861c565c4bdfbf | |
parent | 189fbcede89bb5d7ec6c3b05d1e30f1bab3a060a (diff) | |
download | ffmpeg-0f943ed3c8e5839db61958a59300c866680ece3d.tar.gz |
swfenc: zero fifo after freeing
Fixes CID602000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/swfenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index b55f1a9ce4..a8fd9f91f0 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -487,8 +487,10 @@ static int swf_write_trailer(AVFormatContext *s) enc = s->streams[i]->codec; if (enc->codec_type == AVMEDIA_TYPE_VIDEO) video_enc = enc; - else + else { av_fifo_free(swf->audio_fifo); + swf->audio_fifo = NULL; + } } put_swf_tag(s, TAG_END); |