libs: encoder: h264: fix copy & paste error
Coverity scan bug: The copied code will not have its intended effect. This is a bug from commit cdaf15b2, where the intention is to initialize RefPicList1 while setting RefPicList0.
This commit is contained in:
parent
bd7716a739
commit
f197749343
@ -2128,7 +2128,7 @@ add_slice_headers (GstVaapiEncoderH264 * encoder, GstVaapiEncPicture * picture,
|
||||
}
|
||||
for (; i_ref < G_N_ELEMENTS (slice_param->RefPicList1); ++i_ref) {
|
||||
slice_param->RefPicList1[i_ref].picture_id = VA_INVALID_SURFACE;
|
||||
slice_param->RefPicList0[i_ref].flags = VA_PICTURE_H264_INVALID;
|
||||
slice_param->RefPicList1[i_ref].flags = VA_PICTURE_H264_INVALID;
|
||||
}
|
||||
|
||||
/* not used if pic_param.pic_fields.bits.weighted_pred_flag == FALSE */
|
||||
|
Loading…
x
Reference in New Issue
Block a user