From b88eb87630c3384517437a1ee640bca9fe92852f Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Tue, 15 Nov 2011 03:56:37 +0100 Subject: [PATCH] asf: use packet dts as approximation of pts Having a somehow off seeking is better than having none at all. Signed-off-by: Luca Barbato --- libavformat/asfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 49a9b1d539..1246cc1b65 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -1173,7 +1173,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos, return AV_NOPTS_VALUE; } - pts= pkt->pts; + pts = pkt->dts; av_free_packet(pkt); if(pkt->flags&AV_PKT_FLAG_KEY){