Commit 65169549 authored by Francois Cartegnie's avatar Francois Cartegnie

stream_filter: smooth: fix negative array access

cid #1048853
parent 8c2e47c0
......@@ -378,6 +378,11 @@ static int Download( stream_t *s, sms_stream_t *sms )
stream_sys_t *p_sys = s->p_sys;
int index = es_cat_to_index( sms->type );
if ( unlikely( index == -1 ) )
{
msg_Err( s, "invalid stream type" );
return VLC_EGENERIC;
}
int64_t start_time = p_sys->download.lead[index];
quality_level_t *qlevel = get_qlevel( sms, sms->download_qlvl );
......
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