Revision 67d44149 libavformat/utils.c

View differences:

libavformat/utils.c
1102 1102
                    compute_pkt_fields(s, st, st->parser, pkt);
1103 1103

  
1104 1104
                    if((s->iformat->flags & AVFMT_GENERIC_INDEX) && pkt->flags & AV_PKT_FLAG_KEY){
1105
                        int64_t pos= (st->parser->flags & PARSER_FLAG_COMPLETE_FRAMES) ? pkt->pos : st->parser->frame_offset;
1105 1106
                        ff_reduce_index(s, st->index);
1106
                        av_add_index_entry(st, st->parser->frame_offset, pkt->dts,
1107
                        av_add_index_entry(st, pos, pkt->dts,
1107 1108
                                           0, 0, AVINDEX_KEYFRAME);
1108 1109
                    }
1109 1110

  

Also available in: Unified diff