Mercurial > libavformat.hg
comparison avidec.c @ 1758:c04b60df411a libavformat
indent
author | michael |
---|---|
date | Mon, 05 Feb 2007 23:16:01 +0000 |
parents | 9d217a18aa49 |
children | e9bff647e326 |
comparison
equal
deleted
inserted
replaced
1757:9d217a18aa49 | 1758:c04b60df411a |
---|---|
624 pkt->dts /= ast->sample_size; | 624 pkt->dts /= ast->sample_size; |
625 //av_log(NULL, AV_LOG_DEBUG, "dts:%"PRId64" offset:%"PRId64" %d/%d smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_size, AV_TIME_BASE, avi->stream_index, size); | 625 //av_log(NULL, AV_LOG_DEBUG, "dts:%"PRId64" offset:%"PRId64" %d/%d smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_size, AV_TIME_BASE, avi->stream_index, size); |
626 pkt->stream_index = avi->stream_index; | 626 pkt->stream_index = avi->stream_index; |
627 | 627 |
628 if (st->codec->codec_type == CODEC_TYPE_VIDEO) { | 628 if (st->codec->codec_type == CODEC_TYPE_VIDEO) { |
629 AVIndexEntry *e; | 629 AVIndexEntry *e; |
630 int index; | 630 int index; |
631 assert(st->index_entries); | 631 assert(st->index_entries); |
632 | 632 |
633 index= av_index_search_timestamp(st, pkt->dts, 0); | 633 index= av_index_search_timestamp(st, pkt->dts, 0); |
634 e= &st->index_entries[index]; | 634 e= &st->index_entries[index]; |
635 | 635 |
636 if(index >= 0 && e->timestamp == ast->frame_offset){ | 636 if(index >= 0 && e->timestamp == ast->frame_offset){ |
637 if (e->flags & AVINDEX_KEYFRAME) | 637 if (e->flags & AVINDEX_KEYFRAME) |
638 pkt->flags |= PKT_FLAG_KEY; | 638 pkt->flags |= PKT_FLAG_KEY; |
639 } | 639 } |
640 } else { | 640 } else { |
641 pkt->flags |= PKT_FLAG_KEY; | 641 pkt->flags |= PKT_FLAG_KEY; |
642 } | 642 } |
643 if(ast->sample_size) | 643 if(ast->sample_size) |
644 ast->frame_offset += pkt->size; | 644 ast->frame_offset += pkt->size; |