Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-28 01:02:17 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-10-28 01:03:07 +0400
commit0f943ed3c8e5839db61958a59300c866680ece3d (patch)
tree10d5ef18120987eb41791b455a861c565c4bdfbf /libavformat
parent189fbcede89bb5d7ec6c3b05d1e30f1bab3a060a (diff)
swfenc: zero fifo after freeing
Fixes CID602000 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/swfenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index b55f1a9ce4..a8fd9f91f0 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -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);