From ef06de33fe720f75cd851acdb266196d7e8d575b Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 10 Dec 2014 18:12:29 -0800 Subject: [PATCH] vp9: make postproc members depend on CONFIG_VP9_POSTPROC Change-Id: Id64218386968cee3132269e4a0572650f20fd980 --- vp9/common/vp9_alloccommon.c | 2 ++ vp9/common/vp9_onyxc_int.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/vp9/common/vp9_alloccommon.c b/vp9/common/vp9_alloccommon.c index 3518d8375..cad57501a 100644 --- a/vp9/common/vp9_alloccommon.c +++ b/vp9/common/vp9_alloccommon.c @@ -44,8 +44,10 @@ void vp9_free_ref_frame_buffers(VP9_COMMON *cm) { vp9_free_frame_buffer(&cm->frame_bufs[i].buf); } +#if CONFIG_VP9_POSTPROC vp9_free_frame_buffer(&cm->post_proc_buffer); vp9_free_frame_buffer(&cm->post_proc_buffer_int); +#endif } void vp9_free_context_buffers(VP9_COMMON *cm) { diff --git a/vp9/common/vp9_onyxc_int.h b/vp9/common/vp9_onyxc_int.h index 55a1f86c7..257de0908 100644 --- a/vp9/common/vp9_onyxc_int.h +++ b/vp9/common/vp9_onyxc_int.h @@ -112,8 +112,10 @@ typedef struct VP9Common { int new_fb_idx; +#if CONFIG_VP9_POSTPROC YV12_BUFFER_CONFIG post_proc_buffer; YV12_BUFFER_CONFIG post_proc_buffer_int; +#endif FRAME_TYPE last_frame_type; /* last frame's frame type for motion search.*/ FRAME_TYPE frame_type;