indent
Originally committed as revision 7845 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
716ae7caf8
commit
4323b09d38
@ -626,17 +626,17 @@ resync:
|
|||||||
pkt->stream_index = avi->stream_index;
|
pkt->stream_index = avi->stream_index;
|
||||||
|
|
||||||
if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
|
if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
|
||||||
AVIndexEntry *e;
|
AVIndexEntry *e;
|
||||||
int index;
|
int index;
|
||||||
assert(st->index_entries);
|
assert(st->index_entries);
|
||||||
|
|
||||||
index= av_index_search_timestamp(st, pkt->dts, 0);
|
index= av_index_search_timestamp(st, pkt->dts, 0);
|
||||||
e= &st->index_entries[index];
|
e= &st->index_entries[index];
|
||||||
|
|
||||||
if(index >= 0 && e->timestamp == ast->frame_offset){
|
if(index >= 0 && e->timestamp == ast->frame_offset){
|
||||||
if (e->flags & AVINDEX_KEYFRAME)
|
if (e->flags & AVINDEX_KEYFRAME)
|
||||||
pkt->flags |= PKT_FLAG_KEY;
|
pkt->flags |= PKT_FLAG_KEY;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pkt->flags |= PKT_FLAG_KEY;
|
pkt->flags |= PKT_FLAG_KEY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user