[gegl/video-rejuvenation: 80/83] ff-save: set the number of channels in GeglAudio's
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/video-rejuvenation: 80/83] ff-save: set the number of channels in GeglAudio's
- Date: Thu, 19 Nov 2015 21:49:04 +0000 (UTC)
commit 1fd8423a0b571e7c13e4d1042b6c503f0d38f09f
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Nov 19 02:56:46 2015 +0100
ff-save: set the number of channels in GeglAudio's
operations/external/ff-load.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index 26939f1..9fe6d8e 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -626,6 +626,8 @@ process (GeglOperation *operation,
if (p->audio_stream && p->audio_stream->codec) // XXX: remove second clause
{
o->audio->sample_rate = p->audio_stream->codec->sample_rate;
+ o->audio->channels = 2;
+ o->audio->channel_layout = AV_CH_LAYOUT_STEREO;
o->audio->samples = samples_per_frame (o->frame,
o->frame_rate, o->audio->sample_rate,
&sample_start);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]