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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-10-04 19:10:24 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-10-04 19:10:24 +0400
commitffe9824011e34c8ab57c7be89350979e6343ce9f (patch)
tree287362957da1017a8489a635aafb49ec6166105f /source/blender/blenkernel/intern/writeffmpeg.c
parentf618bc5aca23616cf22c0e9350ae3c2ee23acc5f (diff)
Correction for own recent commit -- didn't know it's unsupported in
MSVC to do such things.
Diffstat (limited to 'source/blender/blenkernel/intern/writeffmpeg.c')
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index 21289b07f8d..425af0272a3 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -573,7 +573,8 @@ static AVStream* alloc_audio_stream(RenderData *rd, int codec_id, AVFormatContex
/* need to prevent floating point exception when using vorbis audio codec,
initialize this value in the same way as it's done in FFmpeg iteslf (sergey) */
- st->codec->time_base = (AVRational){1, st->codec->sample_rate};
+ st->codec->time_base.num= 1;
+ st->codec->time_base.den= st->codec->sample_rate;
audio_outbuf_size = FF_MIN_BUFFER_SIZE;