From 2152bba6ae738153d6f88f620f03241538ffb646 Mon Sep 17 00:00:00 2001 From: Xu Jintao Date: Tue, 21 Mar 2017 08:19:00 +0000 Subject: PD#141136: Add protection for omx_set_pts Change-Id: I16b4e9ba2e392ccbf36ea60c6adb75243330c669 --- 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(); -- cgit