diff options
author | Tim 'mithro' Ansell <mithro@mithis.com> | 2014-01-21 22:58:42 +1100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-01-21 13:22:40 +0100 |
commit | 520221c47a64e46c23cf120b9e8a497b6af157da (patch) | |
tree | 74258f2b10c202b829bc46ebe8e716aa7b381a8d | |
parent | 77c33a45cce8e079c307275dbb6d5f8f27189693 (diff) |
avmux: Force DV audio input format to 48kHz, 2 channels
libavformat only supports muxing 16bit, 48kHz stereo into DV containers.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=722672
-rw-r--r-- | ext/libav/gstavmux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/libav/gstavmux.c b/ext/libav/gstavmux.c index 6538e84..ac033fe 100644 --- a/ext/libav/gstavmux.c +++ b/ext/libav/gstavmux.c @@ -254,6 +254,10 @@ gst_ffmpegmux_base_init (gpointer g_class) const gint rates[] = { 44100, 22050, 11025 }; gst_ffmpeg_mux_simple_caps_set_int_list (audiosinkcaps, "rate", 3, rates); + } else if (strcmp (in_plugin->name, "dv") == 0) { + gst_caps_set_simple (audiosinkcaps, + "rate", G_TYPE_INT, 48000, "channels", G_TYPE_INT, 2, NULL); + } else if (strcmp (in_plugin->name, "gif") == 0) { if (videosinkcaps) gst_caps_unref (videosinkcaps); |