diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavformat/swfenc.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavformat/swfenc.c')
| -rw-r--r-- | ffmpeg/libavformat/swfenc.c | 4 |
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; } |
