asfdec: use dts for seeking.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Nov 2011 00:08:04 +0000 (01:08 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Nov 2011 00:08:04 +0000 (01:08 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec.c

index a254d5d..c8b8183 100644 (file)
@@ -1181,7 +1181,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){