summaryrefslogtreecommitdiff
path: root/msm8996
diff options
context:
space:
mode:
authorMahesh Lanka <mlanka@codeaurora.org>2017-06-01 12:00:25 +0530
committerChong Zhang <chz@google.com>2017-06-01 09:52:03 -0700
commitc406bbb10f5323c5fc26c1dfd9596c82f1edf1ea (patch)
tree780fc2396a5e2d79dc7ce9b24840ec1dc8a4aee1 /msm8996
parent6355bdb5418cdb174edb84b5d81366a7dcdc0728 (diff)
downloadmedia-c406bbb10f5323c5fc26c1dfd9596c82f1edf1ea.tar.gz
mm-video-v4l2: venc: Initialize profile and level set flags
profile and level set flags are not initialized, due to this wrong profile and levels are set to the encoder. This change will fix the same. Bug: 62095651 Change-Id: Ic45018ed6ec9c9d0a848b9d92194b440ef257cb5
Diffstat (limited to 'msm8996')
-rw-r--r--msm8996/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/msm8996/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp b/msm8996/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
index 76bd24a..ba53f0c 100644
--- a/msm8996/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
+++ b/msm8996/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
@@ -236,6 +236,9 @@ venc_dev::venc_dev(class omx_venc *venc_class):mInputExtradata(venc_class), mOut
color_format = 0;
hw_overload = false;
mBatchSize = 0;
+ m_profile_set = false;
+ m_level_set = false;
+ rc_off_level = 0;
pthread_mutex_init(&pause_resume_mlock, NULL);
pthread_cond_init(&pause_resume_cond, NULL);
memset(&idrperiod, 0, sizeof(idrperiod));