[FFmpeg-devel] [PATCH]support for chapters in mkv container

Anton Khirnov wyskas
Wed May 21 06:56:25 CEST 2008


On Wed, May 21, 2008 at 12:30 AM, Aurelien Jacobs <aurel at gnuage.org> wrote:
> Anton Khirnov wrote:
>
>> On Tue, May 20, 2008 at 12:14 PM, Aurelien Jacobs <aurel at gnuage.org> wrote:
>> > Anton Khirnov wrote:
>> >
>> >> Ok, all done.
>> >>
>> >> [...]
>> >>
>> >> Index: libavformat/utils.c
>> >> ===================================================================
>> >> --- libavformat/utils.c       (revision 13202)
>> >> +++ libavformat/utils.c       (working copy)
>> >> @@ -2148,6 +2148,11 @@
>> >>      av_freep(&s->programs);
>> >>      flush_packet_queue(s);
>> >>      av_freep(&s->priv_data);
>> >> +    for(i = 0; i < s->num_chapters; i++) {
>> >> +        av_freep(&s->chapters[i]->title);
>> >> +        av_freep(&s->chapters[i]);
>> >> +    }
>> >> +    av_freep(&s->chapters);
>> >
>> > No, it seems you haven't applied every proposition from Michael.
>> >
>> > Aurel
>> > _______________________________________________
>> > ffmpeg-devel mailing list
>> > ffmpeg-devel at mplayerhq.hu
>> > https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>> >
>>
>> Oops, shouldn't have programmed early in the morning :)
>
> It seems morning is pretty long for you ;-)
>
>> +    while(s->num_chapters--) {
>> +        av_free(s->chapters[i]->title);
>> +        av_free(s->chapters[i]);
>> +    }
>
> This is obviously wrong...
>
> Aurel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>

/me goes shoot myself

oh well, I hope now I haven't made another ten stupid mistakes.

Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chapters_lavf.diff
Type: text/x-diff
Size: 2559 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080521/65bafb29/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chapters_mkv.diff
Type: text/x-diff
Size: 7409 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080521/65bafb29/attachment-0001.diff>



More information about the ffmpeg-devel mailing list