DO NOT MERGE mm-video-v4l2: venc: add checks before accessing heap pointers am: a2850158 am: 80af9475 am: 492976bf Change-Id: I0ff7c1d8a3d54df44195360017ad127e55818119