diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-05-07 17:51:28 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-05-07 17:51:28 +0300 |
commit | 9cdf11676ecd753fd86c3d8057c2375174ef0a70 (patch) | |
tree | db53dcf7236fa10ca58fa296d9c77060e1d6a5d5 | |
parent | 8241678e6ec6cd84f097d892a000cf214b218957 (diff) |
Fix: No sound is exported with ffmpeg 4.4
We were not assigning the amount of sound channels to the output frames.
Newer ffmpeg releases has sanity checks in place and doesn't fall back
to two channels anymore.
-rw-r--r-- | source/blender/blenkernel/intern/writeffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c index 7fc9e8cc0ef..e5550cee124 100644 --- a/source/blender/blenkernel/intern/writeffmpeg.c +++ b/source/blender/blenkernel/intern/writeffmpeg.c @@ -164,6 +164,7 @@ static int write_audio_frame(FFMpegContext *context) frame->pts = context->audio_time / av_q2d(c->time_base); frame->nb_samples = context->audio_input_samples; frame->format = c->sample_fmt; + frame->channels = c->channels; # ifdef FFMPEG_HAVE_FRAME_CHANNEL_LAYOUT frame->channel_layout = c->channel_layout; # endif |