[FFmpeg-cvslog] asf: use packet dts as approximation of pts
John Stebbins
git at videolan.org
Sat Dec 3 03:13:08 CET 2011
ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Tue Nov 15 03:56:37 2011 +0100| [b88eb87630c3384517437a1ee640bca9fe92852f] | committer: Luca Barbato
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 <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b88eb87630c3384517437a1ee640bca9fe92852f
---
libavformat/asfdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 49a9b1d..1246cc1 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){
More information about the ffmpeg-cvslog
mailing list