Skip to content

Commit

Permalink
Add timestamps for key indices (#77)
Browse files Browse the repository at this point in the history
* add timestamps for key indices

Signed-off-by: lixuanyi <lixuanyi@sensetime.com>

* upd

Signed-off-by: lixuanyi <lixuanyi@sensetime.com>
  • Loading branch information
JoannaLXY authored Jul 5, 2020
1 parent 32ddd21 commit 449a9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/video_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ int64_t VideoReader::GetCurrentPosition() const {
}

int64_t VideoReader::FrameToPTS(int64_t pos) {
int64_t ts = pos * fmt_ctx_->streams[actv_stm_idx_]->duration / GetFrameCount();
int64_t ts = frame_ts_[pos].pts;
return ts;
}

Expand Down

0 comments on commit 449a9ff

Please sign in to comment.