mirror of https://git.ffmpeg.org/ffmpeg.git
swfenc: zero fifo after freeing
Fixes CID602000 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
189fbcede8
commit
0f943ed3c8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue