Commit f41725e3 authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: fix SEI header size

This fixes interlaced false detection that triggered an interlacer that slowed
down HEVC playback.
Co-authored-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
(cherry picked from commit a799daf6)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent af395076
......@@ -301,7 +301,7 @@ static bool FillReorderInfoH264(decoder_t *p_dec, const block_t *p_block,
sei.i_pic_struct = UINT8_MAX;
for(size_t i=0; i<i_sei_count; i++)
HxxxParseSEI(sei_array[i].p_nal, sei_array[i].i_nal, 1,
HxxxParseSEI(sei_array[i].p_nal, sei_array[i].i_nal, 2,
ParseH264SEI, &sei);
p_info->i_num_ts = h264_get_num_ts(p_sps, &slice, sei.i_pic_struct,
......@@ -643,7 +643,7 @@ static bool FillReorderInfoHEVC(decoder_t *p_dec, const block_t *p_block,
for(size_t i=0; i<i_sei_count; i++)
HxxxParseSEI(sei_array[i].p_nal, sei_array[i].i_nal,
1, ParseHEVCSEI, &sei);
2, ParseHEVCSEI, &sei);
p_info->i_poc = POC;
p_info->i_foc = POC; /* clearly looks wrong :/ */
......
Markdown is supported
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