diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-02 00:51:52 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-02 00:51:52 +0400 |
commit | 07d027b1023de26fa2dba45c281612f0bbb29f0a (patch) | |
tree | c0883ef53abe545a9af5c652a07b24bffedb563c /source/blender | |
parent | de9dffc61e15a6af41947cbcf09ada89779e86ac (diff) |
Fix FFMPEG build error with older versions after planar formats commit.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/writeffmpeg.c | 2 |
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; |