summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorDaniel Cardenas <Daniel.Car@cox.net>2007-05-02 13:36:45 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-05-02 13:36:45 +0000
commit711737af8eecd76ee001375884c83d5e91724135 (patch)
treeeca5317b26962914cd9584e100888d46d0e5e53f /libavformat
parent994cb3333dcc33250e8ad99918ab91a109f60f00 (diff)
give the position offset of the file in the packet
update seek regression test reference file accordingly patch by Daniel Cardenas: Daniel Car cox net original thread: [Ffmpeg-devel] [PATCH] Debug help for file position date: 05/01/2007 02:42 AM Originally committed as revision 8871 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index f022ebf098..386989fcc2 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -729,6 +729,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
/* return packet if any */
if (pkt->size) {
got_packet:
+ pkt->pos = s->cur_pkt.pos; // Isn't quite accurate but close.
pkt->duration = 0;
pkt->stream_index = st->index;
pkt->pts = st->parser->pts;