[vlmc-devel] Frame: fix buffer size allocation

Hugo Beauzée-Luyssen git at videolan.org
Sun Mar 2 12:50:42 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Mar  1 21:41:14 2014 +0100| [9413e55b07b32e232674fdd65ceb0b4d49b58966] | committer: Hugo Beauzée-Luyssen

Frame: fix buffer size allocation

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=9413e55b07b32e232674fdd65ceb0b4d49b58966
---

 src/Workflow/Types.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Workflow/Types.cpp b/src/Workflow/Types.cpp
index abfd98a..81f55b4 100644
--- a/src/Workflow/Types.cpp
+++ b/src/Workflow/Types.cpp
@@ -130,5 +130,5 @@ void Frame::resize(size_t size)
     if ( size == m_size )
         return ;
     delete[] m_buffer;
-    m_buffer = new quint32[size];
+    m_buffer = new quint32[size / sizeof(quint32)];
 }



More information about the Vlmc-devel mailing list