mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 04:42:10 +00:00
demux_mkv: eliminate redundant branch
In the else branch pict_type is always 3, so pict_type != 3 is always false. (Note that I have no idea of what it was supposed to do and it is just an equivalent of the old behaviour.)
This commit is contained in:
parent
f49099b94d
commit
e2ecf3d03d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user