]> granicus.if.org Git - libvpx/commit
Fix encoder mem allocation when picture size is changed
authorAttila Nagy <attilanagy@google.com>
Tue, 31 Jul 2012 08:52:10 +0000 (11:52 +0300)
committerAttila Nagy <attilanagy@google.com>
Wed, 1 Aug 2012 05:23:35 +0000 (08:23 +0300)
commitcbc249ba00dbbaffc630499cd992def96a9eb6f4
treef4320fa5f5e26afdcc7439c6b6968d461b9eb730
parentd4d7589428a3764428afdb3658d5fdb15168a0ab
Fix encoder mem allocation when picture size is changed

After the picture size was changed to a bigger one, the internal memory was
corrupted and multithreaded encoder was deadlocking.

Memory for last frame's MVs, segmentation map and active map were allocated when
the compressor was created (vp8_create_compressor). Buffers need to be
reallocated when picture size is changed, so, the allocation was moved to
vp8_alloc_compressor_data, which is called every time the picture is resized.

Change-Id: I7ce16b8e69bbf0386d7997df57add155aada2240
vp8/encoder/onyx_if.c