[libav-bugs] [Bug 263] Segmentation fault in MOV multiplexer

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Wed Apr 11 02:01:03 CEST 2012


lu_zero at gentoo.org <lu_zero at gentoo.org> changed:

           What    |Removed                     |Added
                 CC|                            |lu_zero at gentoo.org

--- Comment #2 from lu_zero at gentoo.org <lu_zero at gentoo.org> 2012-04-11 02:01:03 CEST ---
The faulty code seems to be

    mov->nb_streams = s->nb_streams;
    if (mov->mode & (MODE_MOV|MODE_IPOD) && s->nb_chapters)
        mov->chapter_track = mov->nb_streams++;

since then we pass

    if (mov->chapter_track)
        mov_create_chapter_track(s, mov->chapter_track);

and it result to

static void mov_create_chapter_track(AVFormatContext *s, int tracknum)
    MOVMuxContext *mov = s->priv_data;
    MOVTrack *track = &mov->tracks[tracknum];
    AVPacket pkt = { .stream_index = tracknum, .flags = AV_PKT_FLAG_KEY };

And eventually leads to

    if (trk->entry)
        frag_duration = av_rescale_q(pkt->dts - trk->cluster[0].dts,

Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list