[vlc-devel] Re: Id3 tag and AVI RIFF file problem solved

Igor Andruszkiewicz igor at tmm.pl
Tue Aug 12 12:25:20 CEST 2003


Hi Sigmund !

    Im sorry it wasn't too clear.  AVI  demux (in VLC) has a problem
with reading/parsing header when id3 tag V2 exists in front of the file.
That why we have to seek to postion after id3 tag (if id3 tag v2) and
then let "demux's" to check file. I attached id3tag.c file pls do diff
to see changes. What do think about it ?  

Igor

> > FIEL: id3tag.c
> > 
> > FUNCTION:  static int ParseID3Tags( vlc_object_t *p_this )
> > 
> > at ethe end of this function pls add 
> > 
> >     p_input->p_current_data += i_size; /* seek passed end of ID3 tag */
> > 
> > /// igor
> >     p_pos = malloc( sizeof( stream_position_t ) );
> >     if ( p_pos == 0 )
> >       {
> >             msg_Err( p_input, "no mem" );
> >       }
> > 
> >     input_AccessReinit( p_input );
> >     p_input->pf_seek( p_input,i_size);
> >     input_Tell( p_input, p_pos );
> > 
> >     free(p_pos);
> > 
> > //igor
> > 
> >     return( VLC_SUCCESS );
> Could you please explain to me what this patch is supposed to do? As far as
> I can see half the patch is only getting the stream position without using
> it for anything, and the rest of the patch only seeks to the current position.
> 
> Sigmund
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20030812/b68705ce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: id3tag.c
Type: text/x-csrc
Size: 7853 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20030812/b68705ce/attachment.c>


More information about the vlc-devel mailing list