mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
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:
parent
994cb3333d
commit
711737af8e
@ -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
Loading…
Reference in New Issue
Block a user