summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-08-08 16:50:39 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-08-08 16:57:12 +0200
commitf197749343676f31b47c0b6dba4e426609c5e74d (patch)
tree6dbeaff7e3e90e9cab954d4dae1797c69bf9a43e
parentbd7716a739e0a23bbac3e7f04f40c1383d893505 (diff)
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.
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index 1a14f6c3..dab3c149 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
@@ -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 */