diff options
author | Sun, Mingruo <mingruo.sun@intel.com> | 2015-08-11 15:06:56 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2015-08-11 14:56:48 +0800 |
commit | 2e31dcbd981b926ec5299bba4711e4ac6b3781df (patch) | |
tree | f5e73e5e610d87dcff654b482b6d741e473344fc | |
parent | cde568504fb29e2d386238fe4f7bd3702a21f981 (diff) |
vaenc: Initialize reflist1 to fix the potential issue on Yocto
Signed-off-by: Sun, Mingruo <mingruo.sun@intel.com>
-rw-r--r-- | vaenc/h264encode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vaenc/h264encode.c b/vaenc/h264encode.c index f05204b..e87d1cc 100644 --- a/vaenc/h264encode.c +++ b/vaenc/h264encode.c @@ -1142,6 +1142,10 @@ static int render_slice(void) current_slice->RefPicList0[i].picture_id = VA_INVALID_SURFACE; current_slice->RefPicList0[i].flags = VA_PICTURE_H264_INVALID; } + for (i = 0; i < 32; i++) { + current_slice->RefPicList1[i].picture_id = VA_INVALID_SURFACE; + current_slice->RefPicList1[i].flags = VA_PICTURE_H264_INVALID; + } } else if (current_frame_type == FRAME_B) { int refpiclist0_max = h264_maxref & 0xffff; int refpiclist1_max = (h264_maxref >> 16) & 0xffff; |