提交 94c9bf88 编写于 作者: Y Yusuke Nakamura 提交者: Derek Buitenhuis

mov: Treat keyframe indexes as 1-origin if starting at non-zero.

Signed-off-by: NDerek Buitenhuis <derek.buitenhuis@gmail.com>
上级 ba986931
......@@ -1754,7 +1754,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
unsigned int stts_sample = 0;
unsigned int sample_size;
unsigned int distance = 0;
int key_off = (sc->keyframes && sc->keyframes[0] == 1) || (sc->stps_data && sc->stps_data[0] == 1);
int key_off = (sc->keyframes && sc->keyframes[0] > 0) || (sc->stps_data && sc->stps_data[0] > 0);
current_dts -= sc->dts_shift;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册