mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 20:37:04 +00:00
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@gentoo.org>
This commit is contained in:
parent
73f027c17b
commit
b88eb87630
@ -1173,7 +1173,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos,
|
|||||||
return AV_NOPTS_VALUE;
|
return AV_NOPTS_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
pts= pkt->pts;
|
pts = pkt->dts;
|
||||||
|
|
||||||
av_free_packet(pkt);
|
av_free_packet(pkt);
|
||||||
if(pkt->flags&AV_PKT_FLAG_KEY){
|
if(pkt->flags&AV_PKT_FLAG_KEY){
|
||||||
|
Loading…
Reference in New Issue
Block a user