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:
shdown 2014-08-30 14:03:57 +04:00 committed by wm4
parent f49099b94d
commit e2ecf3d03d
1 changed files with 1 additions and 5 deletions

View File

@ -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;