Permalink
Browse files

vdpau: fix typo, cosmetics

  • Loading branch information...
1 parent a906fe2 commit 12e90fbd342048f7050b66f0e6797308e6e88381 @FernetMenta FernetMenta committed Nov 16, 2011
@@ -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))
{
@@ -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;

0 comments on commit 12e90fb

Please sign in to comment.