Skip to content

Commit

Permalink
vdpau: fix typo, cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Nov 16, 2011
1 parent a906fe2 commit 12e90fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
m_pCodecContext->codec_id = hints.codec;
m_pCodecContext->width = hints.width;
m_pCodecContext->height = hints.height;
m_pCodecContext->coded_width = hints.height;
m_pCodecContext->coded_width = hints.width;
m_pCodecContext->coded_height = hints.height;
if(vdp->Open(m_pCodecContext, pCodec->pix_fmts ? pCodec->pix_fmts[0] : PIX_FMT_NONE))
{
Expand Down
11 changes: 1 addition & 10 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,16 +1248,7 @@ void CVDPAU::FFDrawSlice(struct AVCodecContext *s,
}

// ffmpeg vc-1 decoder does not flush, make sure the data buffer is still valid
bool found(false);
for(unsigned int i = 0; i < vdp->m_videoSurfaces.size(); ++i)
{
if(vdp->m_videoSurfaces[i] == render)
{
found = true;
break;
}
}
if (!found)
if (!vdp->IsSurfaceValid(render))
{
CLog::Log(LOGWARNING, "CVDPAU::FFDrawSlice - ignoring invalid buffer");
return;
Expand Down

0 comments on commit 12e90fb

Please sign in to comment.