diff --git a/gst_libav/ext/libav/gstavdemux.c b/gst_libav/ext/libav/gstavdemux.c index 0c2781ad5eae0e6482af7d1f8f896c81d12959b6..69fc458c43e775391431c4f6f3d4708da25903ed 100644 --- a/gst_libav/ext/libav/gstavdemux.c +++ b/gst_libav/ext/libav/gstavdemux.c @@ -2425,6 +2425,12 @@ gst_ffmpegdemux_register (GstPlugin * plugin) !strcmp (in_plugin->name, "gif") || !strcmp (in_plugin->name, "dsf") || !strcmp (in_plugin->name, "iff")) rank = GST_RANK_MARGINAL; +#ifdef OHOS_OPT_COMPAT + /* enable to use avdemux_wav */ + else if (!strcmp (in_plugin->name, "wav")) { + rank = GST_RANK_PRIMARY + 1; + } +#endif else { GST_DEBUG ("ignoring %s", in_plugin->name); rank = GST_RANK_NONE;