Explorar o código

Actually enable mpeg4 hardware decoding on RPI

Without it, it's essentially blacklisted. Not a useful behavior on RPI
(but on other platforms it is for certain reasons).
Vincent Lang %!s(int64=9) %!d(string=hai) anos
pai
achega
8316624d63
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/player/PlayerComponent.cpp

+ 2 - 0
src/player/PlayerComponent.cpp

@@ -115,6 +115,8 @@ bool PlayerComponent::componentInitialize()
   // interlaved audio/video. Setting it too low increases sensitivity to network
   // issues, and could cause playback failure with "bad" files.
   mpv::qt::set_option_variant(m_mpv, "demuxer-max-bytes", 50 * 1024 * 1024); // bytes
+  // Specifically for enabling mpeg4.
+  mpv::qt::set_option_variant(m_mpv, "hwdec-codecs", "all");
 #endif
 
   mpv_observe_property(m_mpv, 0, "pause", MPV_FORMAT_FLAG);