From 6b38101df5b2be231d67807e0f520c7d37292cea Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 24 Jul 2012 17:29:47 +0200 Subject: [PATCH] parse_packet: reset pkt->pos after it has been used This should have no effect as it was not used in this case Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 5bc79f4350..e348fbde5a 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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;