swfenc: zero fifo after freeing

Fixes CID602000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-27 23:02:17 +02:00
parent 189fbcede8
commit 0f943ed3c8
1 changed files with 3 additions and 1 deletions

View File

@ -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);