h264encode: print correct number of RefPicList0/1
authorAustin Yuan <shengquan.yuan@intel.com>
Fri, 10 May 2013 08:51:33 +0000 (16:51 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 25 Jun 2013 05:53:58 +0000 (13:53 +0800)
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
test/encode/h264encode.c

index 7365008..6a85aba 100644 (file)
@@ -1025,7 +1025,8 @@ static int init_va(void)
     if (attrib[VAConfigAttribEncMaxRefFrames].value != VA_ATTRIB_NOT_SUPPORTED) {
         h264_maxref = attrib[VAConfigAttribEncMaxRefFrames].value;
         
-        printf("Support %d reference frames\n", h264_maxref);
+        printf("Support %d RefPicList0 and %d RefPicList1\n",
+               h264_maxref & 0xffff, (h264_maxref >> 16) & 0xffff );
     }
 
     if (attrib[VAConfigAttribEncMaxSlices].value != VA_ATTRIB_NOT_SUPPORTED)