summaryrefslogtreecommitdiff
path: root/ffmpeg/libavformat/swfenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/libavformat/swfenc.c')
-rw-r--r--ffmpeg/libavformat/swfenc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ffmpeg/libavformat/swfenc.c b/ffmpeg/libavformat/swfenc.c
index 5b7fd1f..8d9cf0c 100644
--- a/ffmpeg/libavformat/swfenc.c
+++ b/ffmpeg/libavformat/swfenc.c
@@ -234,7 +234,7 @@ static int swf_write_header(AVFormatContext *s)
}
if (!swf->audio_enc)
- swf->samples_per_frame = (44100. * rate_base) / rate;
+ swf->samples_per_frame = (44100.0 * rate_base) / rate;
else
swf->samples_per_frame = (swf->audio_enc->sample_rate * rate_base) / rate;
@@ -441,8 +441,6 @@ static int swf_write_video(AVFormatContext *s,
put_swf_tag(s, TAG_SHOWFRAME);
put_swf_end_tag(s);
- avio_flush(s->pb);
-
return 0;
}