Commit eb1c0924 authored by Antti Ajanki's avatar Antti Ajanki Committed by Tristan Matthews

hds: Ignore sentinel value at the end of the fragment table

generate_new_chunk() never proceeds to the last fragment run if the
sentinel is included.
Signed-off-by: Tristan Matthews's avatarTristan Matthews <tmatth@videolan.org>
parent 63c91494
......@@ -430,6 +430,15 @@ static uint8_t* parse_afrt( vlc_object_t* p_this,
s->fragment_run_count++;
}
if ( s->fragment_runs[s->fragment_run_count-1].fragment_number_start == 0 &&
s->fragment_runs[s->fragment_run_count-1].fragment_timestamp == 0 &&
s->fragment_runs[s->fragment_run_count-1].fragment_duration == 0 &&
s->fragment_runs[s->fragment_run_count-1].discont == 0 )
{
/* ignore sentinel value */
s->fragment_run_count--;
}
return data_p;
}
......
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