Index: source/libvpx/vp9/common/vp9_alloccommon.c |
=================================================================== |
--- source/libvpx/vp9/common/vp9_alloccommon.c (revision 291857) |
+++ source/libvpx/vp9/common/vp9_alloccommon.c (working copy) |
@@ -177,7 +177,11 @@ |
for (i = 0; i < FRAME_BUFFERS; ++i) { |
cm->frame_bufs[i].ref_count = 0; |
if (vp9_alloc_frame_buffer(&cm->frame_bufs[i].buf, width, height, |
- ss_x, ss_y, VP9_ENC_BORDER_IN_PIXELS) < 0) |
+ ss_x, ss_y, |
+#if CONFIG_VP9_HIGHBITDEPTH |
+ cm->use_highbitdepth, |
+#endif |
+ VP9_ENC_BORDER_IN_PIXELS) < 0) |
goto fail; |
} |
@@ -185,6 +189,9 @@ |
#if CONFIG_INTERNAL_STATS || CONFIG_VP9_POSTPROC |
if (vp9_alloc_frame_buffer(&cm->post_proc_buffer, width, height, ss_x, ss_y, |
+#if CONFIG_VP9_HIGHBITDEPTH |
+ cm->use_highbitdepth, |
+#endif |
VP9_ENC_BORDER_IN_PIXELS) < 0) |
goto fail; |
#endif |