vlc | branch: master | Rémi Duraffort <[email protected]> | Sat Nov 6 16:12:27 2010 +0100| [c94293c4fd39095b1953d10aa6d994b7fdc0c056] | committer: Rémi Duraffort
libasf: remove unused variable. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c94293c4fd39095b1953d10aa6d994b7fdc0c056 --- modules/demux/asf/libasf.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c index 75229f4..cee5b7b 100644 --- a/modules/demux/asf/libasf.c +++ b/modules/demux/asf/libasf.c @@ -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_t *p_subobj; - int i_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; 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 ) static int ASF_ReadObject_Data( stream_t *s, asf_object_t *p_obj ) { asf_object_data_t *p_data = &p_obj->data; - int i_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; ASF_GetGUID( &p_data->i_file_id, p_peek + 24 ); @@ -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 ) { asf_object_file_properties_t *p_fp = &p_obj->file_properties; - int i_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; ASF_GetGUID( &p_fp->i_file_id, p_peek + 24 ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
