Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add hardware decoding option for VDPAU

Don’t use this with 9/10-bit H.264 as it will most likely just crash.
  • Loading branch information...
commit 2e84fdb29b2bc5e19b99da62a9e91fb3b6334c17 1 parent 14ab079
@lachs0r authored
Showing with 9 additions and 1 deletion.
  1. +7 −1 src/core.cpp
  2. +2 −0  src/prefgeneral.cpp
View
8 src/core.cpp
@@ -1313,7 +1313,13 @@ void Core::startMplayer( QString file, double seek ) {
if (!pref->vo.isEmpty()) {
proc->addArgument( "-vo");
- proc->addArgument( pref->vo );
+ if (pref->vo == "vdpau_hwdec") {
+ proc->addArgument("vdpau");
+ proc->addArgument("-vc");
+ proc->addArgument("ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,");
+ } else {
+ proc->addArgument( pref->vo );
+ }
}
#if USE_ADAPTER
View
2  src/prefgeneral.cpp
@@ -324,6 +324,8 @@ void PrefGeneral::updateDriverCombos() {
}
else
#endif // USE_XV_ADAPTORS
+ if (vo == "vdpau")
+ vo_combo->addItem( "vdpau (" + tr("hardware decoding") + ")", "vdpau_hwdec");
#endif
if (vo == "x11") vo_combo->addItem( "x11 (" + tr("slow") + ")", vo);
else
Please sign in to comment.
Something went wrong with that request. Please try again.