diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2013-05-09 15:26:50 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-25 13:53:58 +0800 |
commit | a5891ab029619697fcb6e642df0af996a2c658df (patch) | |
tree | 955ec4a8383045d76f861713013f1d99a6a2c87e /test | |
parent | 7c87a3e4c2d47dff9982a45b9ca4400d58b997cd (diff) | |
download | libva-a5891ab029619697fcb6e642df0af996a2c658df.tar.gz |
h264encode: fix idr_pic_id issue when encode multiple IDR frames
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/encode/h264encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/encode/h264encode.c b/test/encode/h264encode.c index 2d268aa..ae5d766 100644 --- a/test/encode/h264encode.c +++ b/test/encode/h264encode.c @@ -947,7 +947,7 @@ static int init_va(void) if (attrib[VAConfigAttribRateControl].value != VA_ATTRIB_NOT_SUPPORTED) { int tmp = attrib[VAConfigAttribRateControl].value; - printf("Supporte rate control mode (0x%x):", tmp); + printf("Support rate control mode (0x%x):", tmp); if (tmp & VA_RC_NONE) printf("NONE "); @@ -1539,8 +1539,8 @@ static int render_slice(void) slice_param.macroblock_address = 0; slice_param.num_macroblocks = frame_width*frame_height/(16*16); /* Measured by MB */ slice_param.slice_type = (current_frame_type == FRAME_IDR)?2:current_frame_type; - if (current_frame_type == FRAME_I || current_frame_type == FRAME_IDR) { - ; + if (current_frame_type == FRAME_IDR) { + ++slice_param.idr_pic_id; } else if (current_frame_type == FRAME_P) { int refpiclist0_max = h264_maxref & 0xffff; memcpy(slice_param.RefPicList0, RefPicList0_P, refpiclist0_max*sizeof(VAPictureH264)); |