asf: use packet dts as approximation of pts
authorJohn Stebbins <stebbins@jetheaddev.com>
Tue, 15 Nov 2011 02:56:37 +0000 (03:56 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 2 Dec 2011 10:11:47 +0000 (11:11 +0100)
Having a somehow off seeking is better than having none at all.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/asfdec.c

index 49a9b1d..1246cc1 100644 (file)
@@ -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){