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



commit 0927bf9ed264def6c4cfada5c2e1e0c7d226c93a
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]