Skip to content

Commit

Permalink
vdpau: fix mp4 part2 decoding, activate by default
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Apr 28, 2013
1 parent c901516 commit 7e8917c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ bool CDecoder::Open(AVCodecContext* avctx, const enum PixelFormat, unsigned int
VdpDecoderProfile profile = 0;
if(avctx->codec_id == CODEC_ID_H264)
profile = VDP_DECODER_PROFILE_H264_HIGH;
#ifdef VDP_DECODER_PROFILE_MPEG4_PART2_ASP
else if(avctx->codec_id == CODEC_ID_MPEG4)
profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP;
#endif

if(profile)
{
if (!CDVDCodecUtils::IsVP3CompatibleWidth(avctx->coded_width))
Expand Down Expand Up @@ -532,13 +531,10 @@ void CDecoder::ReadFormatOf( PixelFormat fmt
vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED;
vdp_chroma_type = VDP_CHROMA_TYPE_420;
break;
#if (defined PIX_FMT_VDPAU_MPEG4_IN_AVUTIL) && \
(defined VDP_DECODER_PROFILE_MP)
case PIX_FMT_VDPAU_MPEG4:
vdp_decoder_profile = VDP_DECOPEG4_PART2_ASP;
vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP;
vdp_chroma_type = VDP_CHROMA_TYPE_420;
break;
#endif
default:
vdp_decoder_profile = 0;
vdp_chroma_type = 0;
Expand Down
2 changes: 1 addition & 1 deletion xbmc/settings/AdvancedSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void CAdvancedSettings::Initialize()
m_videoNonLinStretchRatio = 0.5f;
m_videoEnableHighQualityHwScalers = false;
m_videoAutoScaleMaxFps = 30.0f;
m_videoAllowMpeg4VDPAU = false;
m_videoAllowMpeg4VDPAU = true;
m_videoAllowMpeg4VAAPI = false;
m_videoDisableBackgroundDeinterlace = false;
m_videoCaptureUseOcclusionQuery = -1; //-1 is auto detect
Expand Down

0 comments on commit 7e8917c

Please sign in to comment.