diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-26 02:20:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-26 02:20:59 +0200 |
commit | 2880c316602bacba1ce5fa2c75890527534b2af3 (patch) | |
tree | 08ad1620de33916b9cd3bbe10a277782a069e840 | |
parent | 4e7f9ebdc29f7c0f9e7e361ec54861f643918759 (diff) | |
download | ffmpeg-2880c316602bacba1ce5fa2c75890527534b2af3.tar.gz |
parse_packet: use pkt.pos always instead of the avparser offset.
This is more correct and will be needed when the code is moved to
a later point.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index fa3b962954..d7aba39d15 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1235,7 +1235,7 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index) if ((s->iformat->flags & AVFMT_GENERIC_INDEX) && out_pkt.flags & AV_PKT_FLAG_KEY) { - int64_t pos= (st->parser->flags & PARSER_FLAG_COMPLETE_FRAMES) ? out_pkt.pos : st->parser->frame_offset; + int64_t pos= out_pkt.pos; ff_reduce_index(s, st->index); av_add_index_entry(st, pos, out_pkt.dts, 0, 0, AVINDEX_KEYFRAME); |