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
This commit is contained in:
Daniel Cardenas 2007-05-02 13:36:45 +00:00 committed by Benoit Fouet
parent 994cb3333d
commit 711737af8e
2 changed files with 509 additions and 508 deletions

View File

@ -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;

File diff suppressed because it is too large Load Diff