parse_packet: reset pkt->pos after it has been used
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Jul 2012 15:29:47 +0000 (17:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Jul 2012 22:42:50 +0000 (00:42 +0200)
This should have no effect as it was not used in this case

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 5bc79f4..e348fbd 100644 (file)
@@ -1184,6 +1184,7 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
                                pkt->pts, pkt->dts, pkt->pos);
 
         pkt->pts = pkt->dts = AV_NOPTS_VALUE;
+        pkt->pos = -1;
         /* increment read pointer */
         data += len;
         size -= len;