[gegl/video-rejuvenation] ff-save: default to 48000 sample rate



commit 4f79c5302d12885ac7d5cf5a8c2fe29b9091afa0
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Nov 18 17:45:55 2015 +0100

    ff-save: default to 48000 sample rate

 operations/external/ff-save.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c
index 21e6cf4..1bd6c4a 100644
--- a/operations/external/ff-save.c
+++ b/operations/external/ff-save.c
@@ -266,7 +266,10 @@ open_audio (GeglProperties *o, AVFormatContext * oc, AVStream * st)
   {
     if (o->audio)
     {
-      fprintf (stderr, "getting sample rate %i\n", o->audio->samplerate);
+      if (o->audio->samplerate == 0)
+      {
+        o->audio->samplerate = 48000; // XXX: should skip adding audiostream instead
+      }
       p->audio_sample_rate = o->audio->samplerate;
     }
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]