summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/decode/dec_audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c
index ab4cd2ec55..c5ad97f7af 100644
--- a/audio/decode/dec_audio.c
+++ b/audio/decode/dec_audio.c
@@ -164,6 +164,9 @@ static int decode_new_frame(struct dec_audio *da)
if (ret < 0)
return ret;
+ if (da->pts == MP_NOPTS_VALUE && da->header->missing_timestamps)
+ da->pts = 0;
+
if (da->waiting) {
da->pts_offset += da->waiting->samples;
da->decode_format = *da->waiting;