[gegl/video-rejuvenation] ff-save: set the number of channels in GeglAudio's



commit e8d8926657de7a3774ddbc5cb60261d7967c149a
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]