avdemux: Whitelist the demuxers required for GC/Wii/WiiU ADPCM streams

Required to play .brstm (GameCube/Wii) and .bfstm (Wii U) files. Needs
at least avdec_adpcm_thp too, but that one is already accessible.

https://bugzilla.gnome.org/show_bug.cgi?id=789139
This commit is contained in:
Jan Alexander Steffens (heftig) 2017-10-19 16:15:26 +02:00 committed by Sebastian Dröge
parent f86dfde0a4
commit a771795005
2 changed files with 8 additions and 1 deletions

View file

@ -3498,6 +3498,10 @@ gst_ffmpeg_formatid_to_caps (const gchar * format_name)
caps = gst_caps_from_string ("audio/x-voc");
} else if (!strcmp (format_name, "pva")) {
caps = gst_caps_from_string ("video/x-pva");
} else if (!strcmp (format_name, "brstm")) {
caps = gst_caps_from_string ("audio/x-brstm");
} else if (!strcmp (format_name, "bfstm")) {
caps = gst_caps_from_string ("audio/x-bfstm");
} else {
gchar *name;

View file

@ -2084,7 +2084,10 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
!strcmp (in_plugin->name, "yuv4mpegpipe") ||
!strcmp (in_plugin->name, "pva") ||
!strcmp (in_plugin->name, "mpc") ||
!strcmp (in_plugin->name, "mpc8") || !strcmp (in_plugin->name, "ivf"))
!strcmp (in_plugin->name, "mpc8") ||
!strcmp (in_plugin->name, "ivf") ||
!strcmp (in_plugin->name, "brstm") ||
!strcmp (in_plugin->name, "bfstm"))
rank = GST_RANK_MARGINAL;
else {
GST_DEBUG ("ignoring %s", in_plugin->name);