diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-04 19:10:24 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-04 19:10:24 +0400 |
commit | ffe9824011e34c8ab57c7be89350979e6343ce9f (patch) | |
tree | 287362957da1017a8489a635aafb49ec6166105f /source/blender/blenkernel | |
parent | f618bc5aca23616cf22c0e9350ae3c2ee23acc5f (diff) |
Correction for own recent commit -- didn't know it's unsupported in
MSVC to do such things.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/writeffmpeg.c | 3 |
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; |