Skip to content

Commit

Permalink
vaapi: correct dimensions of the various buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 30, 2014
1 parent 7adcfca commit 8697b34
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp
Expand Up @@ -492,8 +492,8 @@ bool CDecoder::Open(AVCodecContext* avctx, const enum PixelFormat fmt, unsigned
m_vaapiConfig.vidHeight = avctx->height;
m_vaapiConfig.outWidth = avctx->width;
m_vaapiConfig.outHeight = avctx->height;
m_vaapiConfig.surfaceWidth = avctx->width;
m_vaapiConfig.surfaceHeight = avctx->height;
m_vaapiConfig.surfaceWidth = avctx->coded_width;
m_vaapiConfig.surfaceHeight = avctx->coded_height;
m_vaapiConfig.aspect = avctx->sample_aspect_ratio;
m_decoderThread = CThread::GetCurrentThreadId();
m_DisplayState = VAAPI_OPEN;
Expand Down Expand Up @@ -1837,9 +1837,9 @@ CVaapiRenderPicture* COutput::ProcessPicture(CVaapiProcessedPicture &pic)
pic.videoSurface,
retPic->pixmap,
0,0,
m_config.surfaceWidth, m_config.surfaceHeight,
m_config.vidWidth, m_config.vidHeight,
0,0,
m_config.surfaceWidth, m_config.surfaceHeight,
m_config.outWidth, m_config.outHeight,
NULL,0,
VA_FRAME_PICTURE | colorStandard)))
{
Expand Down Expand Up @@ -2071,8 +2071,8 @@ bool COutput::EnsureBufferPool()

pic->pixmap = XCreatePixmap(m_Display,
m_Window,
m_config.surfaceWidth,
m_config.surfaceHeight,
m_config.outWidth,
m_config.outHeight,
wndattribs.depth);
if (!pic->pixmap)
{
Expand Down Expand Up @@ -3002,7 +3002,7 @@ bool CFFmpegPostproc::AddPicture(CVaapiDecodedPicture &inPic)
uint8_t *src, *dst;
src = buf + image.offsets[0];
dst = m_pFilterFrameIn->data[0];
m_dllSSE4.copy_frame(src, dst, m_cache, image.width, image.height, image.pitches[0]);
m_dllSSE4.copy_frame(src, dst, m_cache, m_config.vidWidth, m_config.vidHeight, image.pitches[0]);

src = buf + image.offsets[1];
dst = m_pFilterFrameIn->data[1];
Expand Down

0 comments on commit 8697b34

Please sign in to comment.