]> granicus.if.org Git - libvpx/commitdiff
vp9: make postproc members depend on CONFIG_VP9_POSTPROC
authorJames Zern <jzern@google.com>
Thu, 11 Dec 2014 02:12:29 +0000 (18:12 -0800)
committerJames Zern <jzern@google.com>
Fri, 12 Dec 2014 19:17:17 +0000 (11:17 -0800)
Change-Id: Id64218386968cee3132269e4a0572650f20fd980

vp9/common/vp9_alloccommon.c
vp9/common/vp9_onyxc_int.h

index 3518d837587c58607f40b8e006472018a7acdbaa..cad57501ac8cea7997500814fab0c6db9c61f01c 100644 (file)
@@ -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) {
index 55a1f86c7714bc57e0f41911a56658cf01f56448..257de090819245ccb02dc179f85343e5aa27d8a5 100644 (file)
@@ -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;