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;
|
enc = s->streams[i]->codec;
|
||||||
if (enc->codec_type == AVMEDIA_TYPE_VIDEO)
|
if (enc->codec_type == AVMEDIA_TYPE_VIDEO)
|
||||||
video_enc = enc;
|
video_enc = enc;
|
||||||
else
|
else {
|
||||||
av_fifo_free(swf->audio_fifo);
|
av_fifo_free(swf->audio_fifo);
|
||||||
|
swf->audio_fifo = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
put_swf_tag(s, TAG_END);
|
put_swf_tag(s, TAG_END);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user