diff options
author | Michael Niedermayer | 2012-05-10 04:13:25 +0200 |
---|---|---|
committer | Michael Niedermayer | 2012-05-10 04:17:03 +0200 |
commit | eee89f691edbedbfcb206fbe21b9675756dbe5d1 (patch) | |
tree | 5078ff43e8d7b0722a94cc908a147c3973f6d459 /libavformat/cdg.c | |
parent | 7610dee87bd901972b92de014d5cb1e5319a4a14 (diff) |
cdg: fix pts
Fixes Ticket1226
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/cdg.c')
-rw-r--r-- | libavformat/cdg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/cdg.c b/libavformat/cdg.c index 51b136c6fe..e93a6b29d1 100644 --- a/libavformat/cdg.c +++ b/libavformat/cdg.c @@ -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; |