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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-02 00:51:52 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-02 00:51:52 +0400
commit07d027b1023de26fa2dba45c281612f0bbb29f0a (patch)
treec0883ef53abe545a9af5c652a07b24bffedb563c /source/blender/blenkernel/intern/writeffmpeg.c
parentde9dffc61e15a6af41947cbcf09ada89779e86ac (diff)
Fix FFMPEG build error with older versions after planar formats commit.
Diffstat (limited to 'source/blender/blenkernel/intern/writeffmpeg.c')
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index f671a3cfc05..eddbaff0238 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -135,7 +135,9 @@ static int write_audio_frame(void)
frame = avcodec_alloc_frame();
frame->nb_samples = audio_input_samples;
frame->format = c->sample_fmt;
+#ifdef FFMPEG_HAVE_FRAME_CHANNEL_LAYOUT
frame->channel_layout = c->channel_layout;
+#endif
AUD_readDevice(audio_mixdown_device, audio_input_buffer, audio_input_samples);
audio_time += (double) audio_input_samples / (double) c->sample_rate;