comparison utils.c @ 2067:669e0f355f0c libavformat

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
author benoit
date Wed, 02 May 2007 13:36:45 +0000
parents 3fb09f11d6db
children f778bf13d4a5
comparison
equal deleted inserted replaced
2066:3fb09f11d6db 2067:669e0f355f0c
727 s->cur_len -= len; 727 s->cur_len -= len;
728 728
729 /* return packet if any */ 729 /* return packet if any */
730 if (pkt->size) { 730 if (pkt->size) {
731 got_packet: 731 got_packet:
732 pkt->pos = s->cur_pkt.pos; // Isn't quite accurate but close.
732 pkt->duration = 0; 733 pkt->duration = 0;
733 pkt->stream_index = st->index; 734 pkt->stream_index = st->index;
734 pkt->pts = st->parser->pts; 735 pkt->pts = st->parser->pts;
735 pkt->dts = st->parser->dts; 736 pkt->dts = st->parser->dts;
736 pkt->destruct = av_destruct_packet_nofree; 737 pkt->destruct = av_destruct_packet_nofree;