# HG changeset patch # User michael # Date 1170717361 0 # Node ID c04b60df411abde8e29ea30be8b82d0526f06c5c # Parent 9d217a18aa49d3b266649a8d809ae276669b8a1e indent diff -r 9d217a18aa49 -r c04b60df411a avidec.c --- a/avidec.c Mon Feb 05 23:06:08 2007 +0000 +++ b/avidec.c Mon Feb 05 23:16:01 2007 +0000 @@ -626,17 +626,17 @@ pkt->stream_index = avi->stream_index; if (st->codec->codec_type == CODEC_TYPE_VIDEO) { - AVIndexEntry *e; - int index; + AVIndexEntry *e; + int index; assert(st->index_entries); - index= av_index_search_timestamp(st, pkt->dts, 0); - e= &st->index_entries[index]; + index= av_index_search_timestamp(st, pkt->dts, 0); + e= &st->index_entries[index]; - if(index >= 0 && e->timestamp == ast->frame_offset){ - if (e->flags & AVINDEX_KEYFRAME) - pkt->flags |= PKT_FLAG_KEY; - } + if(index >= 0 && e->timestamp == ast->frame_offset){ + if (e->flags & AVINDEX_KEYFRAME) + pkt->flags |= PKT_FLAG_KEY; + } } else { pkt->flags |= PKT_FLAG_KEY; }