mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -2128,7 +2128,7 @@ add_slice_headers (GstVaapiEncoderH264 * encoder, GstVaapiEncPicture * picture,
|
||||||
}
|
}
|
||||||
for (; i_ref < G_N_ELEMENTS (slice_param->RefPicList1); ++i_ref) {
|
for (; i_ref < G_N_ELEMENTS (slice_param->RefPicList1); ++i_ref) {
|
||||||
slice_param->RefPicList1[i_ref].picture_id = VA_INVALID_SURFACE;
|
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 */
|
/* not used if pic_param.pic_fields.bits.weighted_pred_flag == FALSE */
|
||||||
|
|
Loading…
Reference in a new issue