diff --git a/components/EncodeInterface.cpp b/components/EncodeInterface.cpp
index 12152e6f747198b2058268efd1ccd92826de67a8..c04e43107fe65f78a4c4b6b2fe71ed9b2684de4f 100644
--- a/components/EncodeInterface.cpp
+++ b/components/EncodeInterface.cpp
@@ -6,6 +6,7 @@
 #define LOG_TAG "V4L2EncodeInterface"
 
 #include <v4l2_codec2/components/EncodeInterface.h>
+#include <v4l2_codec2/plugin_store/V4L2AllocatorId.h>
 
 #include <inttypes.h>
 #include <algorithm>
@@ -29,8 +30,8 @@ namespace {
 // Use basic linear block pool/allocator as default.
 constexpr C2BlockPool::local_id_t kDefaultOutputBlockPool = C2BlockPool::BASIC_LINEAR;
 // Default input and output allocators.
-constexpr C2Allocator::id_t kDefaultInputAllocator = C2PlatformAllocatorStore::GRALLOC;
-constexpr C2Allocator::id_t kDefaultOutputAllocator = C2PlatformAllocatorStore::BLOB;
+constexpr C2Allocator::id_t kDefaultInputAllocator = V4L2AllocatorId::DMABUF_CARVEOUT;
+constexpr C2Allocator::id_t kDefaultOutputAllocator = V4L2AllocatorId::DMABUF_CARVEOUT;
 
 // The default output framerate in frames per second.
 // TODO: increase to 60 fps in the future.