提交 eee89f69 编写于 作者: M Michael Niedermayer

cdg: fix pts

Fixes Ticket1226
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 7610dee8
......@@ -60,7 +60,8 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
}
pkt->stream_index = 0;
pkt->dts=pkt->pts= s->streams[0]->cur_dts;
pkt->dts=
pkt->pts= pkt->pos / CDG_PACKET_SIZE;
if(ret>5 && (pkt->data[0]&0x3F) == 9 && (pkt->data[1]&0x3F)==1 && !(pkt->data[2+2+1] & 0x0F)){
pkt->flags = AV_PKT_FLAG_KEY;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册