Revision 30a43f2d libavformat/utils.c

View differences:

libavformat/utils.c
1131 1131
 * @param timestamp timestamp in the timebase of the given stream
1132 1132
 */
1133 1133
int av_add_index_entry(AVStream *st,
1134
                            int64_t pos, int64_t timestamp, int distance, int flags)
1134
                            int64_t pos, int64_t timestamp, int size, int distance, int flags)
1135 1135
{
1136 1136
    AVIndexEntry *entries, *ie;
1137 1137
    int index;
......
1168 1168
    ie->pos = pos;
1169 1169
    ie->timestamp = timestamp;
1170 1170
    ie->min_distance= distance;
1171
    ie->size= size;
1171 1172
    ie->flags = flags;
1172 1173

  
1173 1174
    return index;
......
1193 1194
        if (pkt->stream_index == 0 && st->parser &&
1194 1195
            (pkt->flags & PKT_FLAG_KEY)) {
1195 1196
            av_add_index_entry(st, st->parser->frame_offset, pkt->dts,
1196
                            0, AVINDEX_KEYFRAME);
1197
                            0, 0, AVINDEX_KEYFRAME);
1197 1198
        }
1198 1199
        av_free_packet(pkt);
1199 1200
    }

Also available in: Unified diff