Skip to content
This repository
Browse code

Force software decoding for all hi10p profiles. #12046

  • Loading branch information...
commit cc9281da02e24afc80d3adb12c6d679050cef8e3 1 parent 22400aa
Stein Ivar Berghei authored January 15, 2012
16  xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
@@ -165,6 +165,22 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
165 165
 
166 166
   pCodec = NULL;
167 167
 
  168
+  if (hints.codec == CODEC_ID_H264)
  169
+  {
  170
+    switch(hints.profile)
  171
+    {
  172
+      case FF_PROFILE_H264_HIGH_10:
  173
+      case FF_PROFILE_H264_HIGH_10_INTRA:
  174
+      case FF_PROFILE_H264_HIGH_422:
  175
+      case FF_PROFILE_H264_HIGH_422_INTRA:
  176
+      case FF_PROFILE_H264_HIGH_444_PREDICTIVE:
  177
+      case FF_PROFILE_H264_HIGH_444_INTRA:
  178
+      case FF_PROFILE_H264_CAVLC_444:
  179
+      m_bSoftware = true;
  180
+      break;
  181
+    }
  182
+  }
  183
+
168 184
 #ifdef HAVE_LIBVDPAU
169 185
   if(g_guiSettings.GetBool("videoplayer.usevdpau") && !m_bSoftware)
170 186
   {

0 notes on commit cc9281d

Please sign in to comment.
Something went wrong with that request. Please try again.