commit | 532b994ef5150a4305ee968c9291841621f0d8ce | [log] [tgz] |
---|---|---|
author | Haihao Xiang <haihao.xiang@intel.com> | Fri Mar 16 15:39:42 2018 +0800 |
committer | Xiang, Haihao <haihao.xiang@intel.com> | Mon Mar 19 16:18:23 2018 +0800 |
tree | f3e90788a2d29a6c0856ddab9cd60ebba8014a31 | |
parent | 90e524f5518e033b90b32d236df0fc1fcb5ba05e [diff] |
Check whether the surface is found Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
diff --git a/encode/svctenc.c b/encode/svctenc.c index 54529ce..cf5b3b5 100644 --- a/encode/svctenc.c +++ b/encode/svctenc.c
@@ -1848,6 +1848,8 @@ } } + assert(found != -1); + return found; }