diff options
author | Karlson2k <k2k@narod.ru> | 2014-11-13 18:30:23 +0300 |
---|---|---|
committer | Karlson2k <k2k@narod.ru> | 2014-11-13 18:30:23 +0300 |
commit | dba9e9d750b660a3aa0b19ef6f5b1dd19ee2bcf6 (patch) | |
tree | da8e46dfff9aa5ca8479833db756b541f5f30dd9 | |
parent | 050ba058088d71ae9f0666af7c7003f07dc7dd27 (diff) |
DVDVideoCodecLibMpeg2: fix broken check for memory allocation
Thanks @fritsch and @Uukrull
-rw-r--r-- | xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecLibMpeg2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecLibMpeg2.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecLibMpeg2.cpp index e122f5ba6d..25e55cf50a 100644 --- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecLibMpeg2.cpp +++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecLibMpeg2.cpp @@ -110,7 +110,7 @@ DVDVideoPicture* CDVDVideoCodecLibMpeg2::GetBuffer(unsigned int width, unsigned m_pVideoBuffer[i].data[0] = (uint8_t*)_aligned_malloc(iPixels, 16); //Y m_pVideoBuffer[i].data[1] = (uint8_t*)_aligned_malloc(iChromaPixels, 16); //U m_pVideoBuffer[i].data[2] = (uint8_t*)_aligned_malloc(iChromaPixels, 16); //V - if (!m_pVideoBuffer[i].data[0] || m_pVideoBuffer[i].data[1] || m_pVideoBuffer[i].data[2]) + if (!m_pVideoBuffer[i].data[0] || !m_pVideoBuffer[i].data[1] || !m_pVideoBuffer[i].data[2]) { _aligned_free(m_pVideoBuffer[i].data[0]); _aligned_free(m_pVideoBuffer[i].data[1]); |