On Mon, 29 Oct 2012 10:19:14 +0100, Luca Barbato <[email protected]> wrote: > On 10/24/12 6:17 PM, Anton Khirnov wrote: > > --- > > libavformat/dv.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/libavformat/dv.c b/libavformat/dv.c > > index 70786b1..17c545c 100644 > > --- a/libavformat/dv.c > > +++ b/libavformat/dv.c > > @@ -372,7 +372,7 @@ int avpriv_dv_produce_packet(DVDemuxContext *c, > > AVPacket *pkt, > > pkt->data = buf; > > pkt->size = size; > > pkt->flags |= AV_PKT_FLAG_KEY; > > - pkt->stream_index = c->vst->id; > > + pkt->stream_index = c->vst->index; > > pkt->pts = c->frames; > > > > c->frames++; > > > > Seems ok, but why id is used before?
Cargo cult most probably. I've seen some other demuxers do it for no reasons. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
