summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/api2
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2019-03-18 12:52:28 -0700
committerChong Zhang <chz@google.com>2019-03-18 12:54:51 -0700
commit70bfcec27553516ce22b1513d28da5d09d3a3c82 (patch)
treededb41f69638dcc98b9954dbbd31486127670608 /services/camera/libcameraservice/api2
parente9955729faa3a33483b9739f085856b5b4b451d5 (diff)
downloadframeworks_av-70bfcec27553516ce22b1513d28da5d09d3a3c82.tar.gz
frameworks_av-70bfcec27553516ce22b1513d28da5d09d3a3c82.tar.bz2
frameworks_av-70bfcec27553516ce22b1513d28da5d09d3a3c82.zip
Replace "max-pts-gap-to-encoder" with defined key
Replace the raw string with defined key in ndk. bug: 80314065 test: builds Change-Id: I483d63d05c766f34e45d6a391fd1e241a7b875bc
Diffstat (limited to 'services/camera/libcameraservice/api2')
-rw-r--r--services/camera/libcameraservice/api2/HeicCompositeStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/api2/HeicCompositeStream.cpp b/services/camera/libcameraservice/api2/HeicCompositeStream.cpp
index 9fd0e8bfbb..743c8163cc 100644
--- a/services/camera/libcameraservice/api2/HeicCompositeStream.cpp
+++ b/services/camera/libcameraservice/api2/HeicCompositeStream.cpp
@@ -1177,7 +1177,7 @@ status_t HeicCompositeStream::initializeCodec(uint32_t width, uint32_t height,
outputFormat->setInt32(KEY_BITRATE_MODE, BITRATE_MODE_CQ);
outputFormat->setInt32(KEY_QUALITY, kDefaultJpegQuality);
// Ask codec to skip timestamp check and encode all frames.
- outputFormat->setInt64("max-pts-gap-to-encoder", kNoFrameDropMaxPtsGap);
+ outputFormat->setInt64(KEY_MAX_PTS_GAP_TO_ENCODER, kNoFrameDropMaxPtsGap);
int32_t gridWidth, gridHeight, gridRows, gridCols;
if (useGrid || mUseHeic) {