소스 검색

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 9 년 전
부모
커밋
8316624d63
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);