提交 40494460 编写于 作者: A Andreas Rheinhardt

avformat/smacker: Set audio duration

Signed-off-by: NAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
上级 edea1565
......@@ -315,7 +315,8 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
pkt->stream_index = smk->indexes[i];
pkt->pts = smk->aud_pts[i];
smk->aud_pts[i] += AV_RL32(pkt->data);
pkt->duration = AV_RL32(pkt->data);
smk->aud_pts[i] += pkt->duration;
smk->next_audio_index = i + 1;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册