1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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

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