Mercurial > libavformat.hg
diff utils.c @ 979:d2e5dfdf4def libavformat
add size to AVIndex
author | michael |
---|---|
date | Wed, 01 Mar 2006 11:29:55 +0000 |
parents | 5e15da09cd6b |
children | 2d57ce58f576 |
line wrap: on
line diff
--- a/utils.c Wed Mar 01 07:42:55 2006 +0000 +++ b/utils.c Wed Mar 01 11:29:55 2006 +0000 @@ -1131,7 +1131,7 @@ * @param timestamp timestamp in the timebase of the given stream */ int av_add_index_entry(AVStream *st, - int64_t pos, int64_t timestamp, int distance, int flags) + int64_t pos, int64_t timestamp, int size, int distance, int flags) { AVIndexEntry *entries, *ie; int index; @@ -1168,6 +1168,7 @@ ie->pos = pos; ie->timestamp = timestamp; ie->min_distance= distance; + ie->size= size; ie->flags = flags; return index; @@ -1193,7 +1194,7 @@ if (pkt->stream_index == 0 && st->parser && (pkt->flags & PKT_FLAG_KEY)) { av_add_index_entry(st, st->parser->frame_offset, pkt->dts, - 0, AVINDEX_KEYFRAME); + 0, 0, AVINDEX_KEYFRAME); } av_free_packet(pkt); }