Merge pull request #773 from CrHasher/yadif_hwdfix
authorJoakim Plate <elupus@ecce.se>
Tue, 10 Apr 2012 23:37:13 +0000 (16:37 -0700)
committerJoakim Plate <elupus@ecce.se>
Tue, 10 Apr 2012 23:37:13 +0000 (16:37 -0700)
Disable Yadif activated by mistake for first frame decode

xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp

index 48b7d45..fdd1112 100644 (file)
@@ -665,6 +665,12 @@ int CDVDVideoCodecFFmpeg::FilterOpen(const CStdString& filters, bool scale)
   if (filters.IsEmpty() && !scale)
     return 0;
 
+  if (m_pHardware)
+  {
+    CLog::Log(LOGWARNING, "CDVDVideoCodecFFmpeg::FilterOpen - skipped opening filters on hardware decode");
+    return 0;
+  }
+
   if (!(m_pFilterGraph = m_dllAvFilter.avfilter_graph_alloc()))
   {
     CLog::Log(LOGERROR, "CDVDVideoCodecFFmpeg::FilterOpen - unable to alloc filter graph");