Commit c80019dd authored by Benjamin Berg's avatar Benjamin Berg
Browse files

wfd: The WFD spec prohibits using slices if min-slice-size is all zero

Just force max_slice_num to 1 in that case.
parent ee85fa66
......@@ -291,6 +291,10 @@ wfd_video_codec_new_from_desc (gint native, const gchar *descr)
res->max_slice_num = (tmp & 0x1ff) + 1;
res->max_slice_size_ratio = (tmp >> 10) & 0x7;
/* If min-slice-size is 0, then the sink does not support slicing. */
if (res->min_slice_size == 0)
res->max_slice_num = 1;
/* frame_rate_ctrl_sup */
tmp = g_ascii_strtoll (tokens[8], NULL, 16);
res->frame_skipping_allowed = tmp & 0x1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment