Commit d745c436 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

hds: fix invalid cast / aliasing violation

(cherry picked from commit cf542f06)
parent 19efb2ec
......@@ -222,8 +222,8 @@ static inline bool isFQUrl( const char* url )
static bool isHDS( stream_t *s )
{
const char *peek;
int i_size = vlc_stream_Peek( s->p_source, (const uint8_t**) &peek, 200 );
const uint8_t *peek;
int i_size = vlc_stream_Peek( s->p_source, &peek, 200 );
if( i_size < 200 )
return false;
......@@ -238,7 +238,7 @@ static bool isHDS( stream_t *s )
str = FromCharset( "UTF-16BE", peek, i_size );
}
else
str = strndup( peek, i_size );
str = strndup( (const char *)peek, i_size );
if( str == NULL )
return false;
......
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