vaapi_h264.c (libav-12) | : | vaapi_h264.c (libav-12.1) | ||
---|---|---|---|---|
skipping to change at line 166 | skipping to change at line 166 | |||
* @param[in] ref_list A pointer to the Libav reference list | * @param[in] ref_list A pointer to the Libav reference list | |||
* @param[in] ref_count The number of reference pictures in ref_list | * @param[in] ref_count The number of reference pictures in ref_list | |||
*/ | */ | |||
static void fill_vaapi_RefPicList(VAPictureH264 RefPicList[32], | static void fill_vaapi_RefPicList(VAPictureH264 RefPicList[32], | |||
const H264Ref *ref_list, | const H264Ref *ref_list, | |||
unsigned int ref_count) | unsigned int ref_count) | |||
{ | { | |||
unsigned int i, n = 0; | unsigned int i, n = 0; | |||
for (i = 0; i < ref_count; i++) | for (i = 0; i < ref_count; i++) | |||
if (ref_list[i].reference) | if (ref_list[i].reference) | |||
fill_vaapi_pic(&RefPicList[n++], ref_list[i].parent, 0); | fill_vaapi_pic(&RefPicList[n++], ref_list[i].parent, | |||
ref_list[i].reference); | ||||
for (; n < 32; n++) | for (; n < 32; n++) | |||
init_vaapi_pic(&RefPicList[n]); | init_vaapi_pic(&RefPicList[n]); | |||
} | } | |||
/** | /** | |||
* Fill in prediction weight table. | * Fill in prediction weight table. | |||
* | * | |||
* VA API requires a plain prediction weight table as it does not infer | * VA API requires a plain prediction weight table as it does not infer | |||
* any value. | * any value. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |