diff options
author | James Zern <jzern@google.com> | 2014-08-27 12:36:23 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2014-08-27 14:21:14 -0700 |
commit | 4f27202df70ab870b3af3140b312df6cb55db728 (patch) | |
tree | 76b15a08ae5bcf7cdeae4ab1fe23409dd46b277b /vp9/decoder | |
parent | bcfb1ffb9defda3ea02a115226540b2dd3f8647d (diff) | |
download | libvpx-4f27202df70ab870b3af3140b312df6cb55db728.tar libvpx-4f27202df70ab870b3af3140b312df6cb55db728.tar.gz libvpx-4f27202df70ab870b3af3140b312df6cb55db728.tar.bz2 libvpx-4f27202df70ab870b3af3140b312df6cb55db728.zip |
vp9: fix crash in mt loopfilter w/corrupt file
if the first frame was corrupt and loop filter not called, the next call
would assume the necessary allocations had been done and segfault when
accessing a NULL pointer
Change-Id: Ib6ef505e5c594e6f0fe65ab0700172bcf06b92a6
Diffstat (limited to 'vp9/decoder')
-rw-r--r-- | vp9/decoder/vp9_dthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/decoder/vp9_dthread.c b/vp9/decoder/vp9_dthread.c index 5dda49a0f..cf5cc8cf8 100644 --- a/vp9/decoder/vp9_dthread.c +++ b/vp9/decoder/vp9_dthread.c @@ -147,7 +147,7 @@ void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame, // Allocate memory used in thread synchronization. // This always needs to be done even if frame_filter_level is 0. - if (!cm->current_video_frame || cm->last_height != cm->height) { + if (!lf_sync->sync_range || cm->last_height != cm->height) { if (cm->last_height != cm->height) { const int aligned_last_height = ALIGN_POWER_OF_TWO(cm->last_height, MI_SIZE_LOG2); |