diff options
author | James Zern <jzern@google.com> | 2015-02-13 18:03:45 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-02-13 19:11:23 -0800 |
commit | 0dd591bedd89deb841799388cc43b69148a27674 (patch) | |
tree | 1e8e204ba35387a6318c6238e93e0f1a13695453 /vp9/common/vp9_thread_common.c | |
parent | c5718a7aa3b5490fbfbc47d6f82e7cb3eed46a1e (diff) | |
download | libvpx-0dd591bedd89deb841799388cc43b69148a27674.tar libvpx-0dd591bedd89deb841799388cc43b69148a27674.tar.gz libvpx-0dd591bedd89deb841799388cc43b69148a27674.tar.bz2 libvpx-0dd591bedd89deb841799388cc43b69148a27674.zip |
loop_filter_rows_mt: remove dependency on 'last_height'
using this to control reallocation would miss a change if the function
were not called for every frame.
fixes potential memory corruption by the subsequent memset
Change-Id: I4c6bb6ab68803104fc824c7e27cc2f9b2cf53e33
Diffstat (limited to 'vp9/common/vp9_thread_common.c')
-rw-r--r-- | vp9/common/vp9_thread_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/common/vp9_thread_common.c b/vp9/common/vp9_thread_common.c index 1a93a34cc..27a3212ca 100644 --- a/vp9/common/vp9_thread_common.c +++ b/vp9/common/vp9_thread_common.c @@ -153,7 +153,7 @@ static void loop_filter_rows_mt(YV12_BUFFER_CONFIG *frame, const int num_workers = MIN(nworkers, tile_cols); int i; - if (!lf_sync->sync_range || cm->last_height != cm->height || + if (!lf_sync->sync_range || sb_rows != lf_sync->rows || num_workers > lf_sync->num_workers) { vp9_loop_filter_dealloc(lf_sync); vp9_loop_filter_alloc(lf_sync, cm, sb_rows, cm->width, num_workers); |