[FFmpeg-cvslog] parse_packet: reset pkt->pos after it has been used

Michael Niedermayer git at videolan.org
Wed Jul 25 00:52:18 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 24 17:29:47 2012 +0200| [6b38101df5b2be231d67807e0f520c7d37292cea] | committer: Michael Niedermayer

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 <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6b38101df5b2be231d67807e0f520c7d37292cea
---

 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;



More information about the ffmpeg-cvslog mailing list