diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-01 11:29:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-01 11:29:55 +0000 |
commit | 30a43f2d09d4ddb7f6335dfd32796896e64b2655 (patch) | |
tree | ab32569d2b2a35be737151c12e375aaedd573e14 /libavformat/utils.c | |
parent | 26d6d032702c55616127511fa317b96763eb5cb3 (diff) | |
download | ffmpeg-30a43f2d09d4ddb7f6335dfd32796896e64b2655.tar.gz |
add size to AVIndex
Originally committed as revision 5083 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index fd645853d6..10c3a4a560 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1131,7 +1131,7 @@ static void av_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t time * @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 @@ int av_add_index_entry(AVStream *st, ie->pos = pos; ie->timestamp = timestamp; ie->min_distance= distance; + ie->size= size; ie->flags = flags; return index; @@ -1193,7 +1194,7 @@ static void av_build_index_raw(AVFormatContext *s) 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); } |