From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavformat/swfenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ffmpeg/libavformat/swfenc.c') 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; } -- cgit v1.2.3