OSDN Git Service

dv: use AVStream.index instead of abusing AVStream.id
authorAnton Khirnov <anton@khirnov.net>
Wed, 24 Oct 2012 07:06:32 +0000 (09:06 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 29 Oct 2012 20:34:05 +0000 (21:34 +0100)
libavformat/dv.c

index 70786b1..17c545c 100644 (file)
@@ -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++;