mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
encoder: h264: casts slice_param->slice_type
slice_type in slice_param is defined as (char *), but it is compared against a signed integer. clang complains about this comparison. This patch casts the variable. https://bugzilla.gnome.org/show_bug.cgi?id=747312
This commit is contained in:
parent
b1bbc087c1
commit
7c71f057b4
1 changed files with 1 additions and 1 deletions
|
@ -1838,7 +1838,7 @@ add_slice_headers (GstVaapiEncoderH264 * encoder, GstVaapiEncPicture * picture,
|
|||
slice_param->num_macroblocks = cur_slice_mbs;
|
||||
slice_param->macroblock_info = VA_INVALID_ID;
|
||||
slice_param->slice_type = h264_get_slice_type (picture->type);
|
||||
g_assert (slice_param->slice_type != -1);
|
||||
g_assert ((gint8) slice_param->slice_type != -1);
|
||||
slice_param->pic_parameter_set_id = encoder->view_idx;
|
||||
slice_param->idr_pic_id = encoder->idr_num;
|
||||
slice_param->pic_order_cnt_lsb = picture->poc;
|
||||
|
|
Loading…
Reference in a new issue