Commit 0f943ed3 authored by Michael Niedermayer's avatar Michael Niedermayer

swfenc: zero fifo after freeing

Fixes CID602000
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 189fbced
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment