mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +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:
@@ -1952,11 +1952,7 @@ static int64_t real_fix_timestamp(unsigned char *buf, int len, int64_t timestamp
|
|||||||
*kf_base = timestamp;
|
*kf_base = timestamp;
|
||||||
*kf_pts = pts;
|
*kf_pts = pts;
|
||||||
} else {
|
} else {
|
||||||
if (pict_type != 3) {
|
timestamp = *kf_base - ((*kf_pts - pts) & 0x1FFF);
|
||||||
timestamp = *kf_base + ((pts - *kf_pts) & 0x1FFF);
|
|
||||||
} else {
|
|
||||||
timestamp = *kf_base - ((*kf_pts - pts) & 0x1FFF);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return timestamp;
|
return timestamp;
|
||||||
|
|||||||
Reference in New Issue
Block a user