Commit c94293c4 authored by Rémi Duraffort's avatar Rémi Duraffort

libasf: remove unused variable.

parent 11f64a07
...@@ -213,10 +213,9 @@ static int ASF_ReadObject_Header( stream_t *s, asf_object_t *p_obj ) ...@@ -213,10 +213,9 @@ static int ASF_ReadObject_Header( stream_t *s, asf_object_t *p_obj )
{ {
asf_object_header_t *p_hdr = &p_obj->header; asf_object_header_t *p_hdr = &p_obj->header;
asf_object_t *p_subobj; asf_object_t *p_subobj;
int i_peek;
const uint8_t *p_peek; const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, 30 ) ) < 30 ) if( stream_Peek( s, &p_peek, 30 ) < 30 )
return VLC_EGENERIC; return VLC_EGENERIC;
p_hdr->i_sub_object_count = GetDWLE( p_peek + 24 ); p_hdr->i_sub_object_count = GetDWLE( p_peek + 24 );
...@@ -255,10 +254,9 @@ static int ASF_ReadObject_Header( stream_t *s, asf_object_t *p_obj ) ...@@ -255,10 +254,9 @@ static int ASF_ReadObject_Header( stream_t *s, asf_object_t *p_obj )
static int ASF_ReadObject_Data( stream_t *s, asf_object_t *p_obj ) static int ASF_ReadObject_Data( stream_t *s, asf_object_t *p_obj )
{ {
asf_object_data_t *p_data = &p_obj->data; asf_object_data_t *p_data = &p_obj->data;
int i_peek;
const uint8_t *p_peek; const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, 50 ) ) < 50 ) if( stream_Peek( s, &p_peek, 50 ) < 50 )
return VLC_EGENERIC; return VLC_EGENERIC;
ASF_GetGUID( &p_data->i_file_id, p_peek + 24 ); ASF_GetGUID( &p_data->i_file_id, p_peek + 24 );
...@@ -333,10 +331,9 @@ static void ASF_FreeObject_Index( asf_object_t *p_obj ) ...@@ -333,10 +331,9 @@ static void ASF_FreeObject_Index( asf_object_t *p_obj )
static int ASF_ReadObject_file_properties( stream_t *s, asf_object_t *p_obj ) static int ASF_ReadObject_file_properties( stream_t *s, asf_object_t *p_obj )
{ {
asf_object_file_properties_t *p_fp = &p_obj->file_properties; asf_object_file_properties_t *p_fp = &p_obj->file_properties;
int i_peek;
const uint8_t *p_peek; const uint8_t *p_peek;
if( ( i_peek = stream_Peek( s, &p_peek, 104 ) ) < 104 ) if( stream_Peek( s, &p_peek, 104 ) < 104 )
return VLC_EGENERIC; return VLC_EGENERIC;
ASF_GetGUID( &p_fp->i_file_id, p_peek + 24 ); ASF_GetGUID( &p_fp->i_file_id, p_peek + 24 );
......
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