On Mon, 19 Sep 2011 16:29:16 +0300 (EEST), Martin Storsjö <[email protected]> wrote: > On Mon, 19 Sep 2011, Anton Khirnov wrote: > > > st may be NULL when there are more mov streams than AVStreams, e.g. when > > chapters are present. > > This is also the case when doing RTP hinting. > > > --- > > libavformat/movenc.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/libavformat/movenc.c b/libavformat/movenc.c > > index 88239c5..b79bbe8 100644 > > --- a/libavformat/movenc.c > > +++ b/libavformat/movenc.c > > @@ -1217,7 +1217,7 @@ static int mov_write_tkhd_tag(AVIOContext *pb, > > MOVTrack *track, AVStream *st) > > avio_wb32(pb, 0); /* reserved */ > > avio_wb32(pb, 0); /* reserved */ > > avio_wb16(pb, 0); /* layer */ > > - avio_wb16(pb, st->codec->codec_type); /* alternate group) */ > > + avio_wb16(pb, st ? st->codec->codec_type : 0); /* alternate group) */ > > /* Volume, only for audio */ > > if(track->enc->codec_type == AVMEDIA_TYPE_AUDIO) > > avio_wb16(pb, 0x0100); > > -- > > Looks sensible to me, the data written for these extra tracks is similar > to prior to the "create an alternate group for each media type" commit, > right? >
Yeah, it was always 0 before. Btw does this mean that there can be multiple sets of chapters in mov? -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
