mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
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
This commit is contained in:
parent
77c33a45cc
commit
520221c47a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue