summaryrefslogtreecommitdiff
authorXu Jintao <jintao.xu@amlogic.com>2017-03-21 08:19:00 (GMT)
committer Xu Jintao <jintao.xu@amlogic.com>2017-03-21 08:26:18 (GMT)
commit2152bba6ae738153d6f88f620f03241538ffb646 (patch)
tree09534cdfb8e97de74ddb6afc59cedf8f01e2219b
parentd99e8b6315e3af3a76218ea5b6ddc9bf6a4b887b (diff)
downloadhwcomposer-2152bba6ae738153d6f88f620f03241538ffb646.zip
hwcomposer-2152bba6ae738153d6f88f620f03241538ffb646.tar.gz
hwcomposer-2152bba6ae738153d6f88f620f03241538ffb646.tar.bz2
PD#141136: Add protection for omx_set_pts
Change-Id: I16b4e9ba2e392ccbf36ea60c6adb75243330c669
Diffstat
-rw-r--r--tvp/OmxUtil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tvp/OmxUtil.cpp b/tvp/OmxUtil.cpp
index ae57fdb..31ffcd2 100644
--- a/tvp/OmxUtil.cpp
+++ b/tvp/OmxUtil.cpp
@@ -47,6 +47,10 @@ int setomxpts(int time_video) {
}
void set_omx_pts(char* data, int* handle) {
+ if (data == NULL) {
+ ALOGE("hnd->base is NULL!!!!");
+ return;
+ }
if (strncmp(data, TVP_SECRET, strlen(TVP_SECRET)) == 0) {
if (*handle == 0 || amvideo_handle == 0) {
*handle = openamvideo();