[vlc-devel] [PATCH v3] Add support for GoPro HiLight tags as chapters

Emeric Grange emeric.grange at gmail.com
Wed May 25 17:47:14 CEST 2016


2016-05-24 23:51 GMT+02:00 Jean-Baptiste Kempf <jb at videolan.org>:

> On 24 May, Emeric Grange wrote :
> > +static void LoadChapterGoPro( demux_t *p_demux, MP4_Box_t *p_hmmt )
> > +{
> > +    demux_sys_t *p_sys = p_demux->p_sys;
> > +
> > +    p_sys->p_title = vlc_input_title_New();
> > +    for( unsigned i = 0; i < BOXDATA(p_hmmt)->i_chapter_count; i++ )
> > +    {
> > +        seekpoint_t *s = vlc_seekpoint_New();
> > +        if (s)
> > +        {
> > +            asprintf( &s->psz_name, "HiLight tag #%u", i+1 );
>
> Shouldn't you check asprintf return before calling EnsureUTF8?
>

No pb I will. By the way I was wondering do I really need to call
EnsureUTF8() if I know the text is ascii compliant? (short enough, no
special chars, etc)



> Rest is good :)
>
> With my kindest regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160525/9272056a/attachment.html>


More information about the vlc-devel mailing list