[FFmpeg-devel] [PATCH 1/7] parse_packet: reset pkt->pos after it has been used

Michael Niedermayer michaelni at gmx.at
Tue Jul 24 18:15:33 CEST 2012


This should have no effect as it was not used in this case

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 5bc79f4..e348fbd 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;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list