summaryrefslogtreecommitdiffstats
path: root/demux/demux_mkv.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux_mkv.c')
-rw-r--r--demux/demux_mkv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c
index 5e2e0f904f..02efcb2a0a 100644
--- a/demux/demux_mkv.c
+++ b/demux/demux_mkv.c
@@ -1952,11 +1952,7 @@ static int64_t real_fix_timestamp(unsigned char *buf, int len, int64_t timestamp
*kf_base = timestamp;
*kf_pts = pts;
} else {
- if (pict_type != 3) {
- timestamp = *kf_base + ((pts - *kf_pts) & 0x1FFF);
- } else {
- timestamp = *kf_base - ((*kf_pts - pts) & 0x1FFF);
- }
+ timestamp = *kf_base - ((*kf_pts - pts) & 0x1FFF);
}
return timestamp;