mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix bug in lp-gop parsing
Unnecessary mod operation resulted in 0 as the reference delta.
This commit is contained in:
parent
cfe834bb53
commit
b6e443f3ce
|
@ -647,7 +647,7 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
|||
}
|
||||
}
|
||||
|
||||
int keyframe = gop_pic->poc_offset % gop.g;
|
||||
int keyframe = gop_pic->poc_offset;
|
||||
for (int i = 1; i < gop_pic->ref_neg_count; ++i) {
|
||||
while (keyframe == gop_pic->ref_neg[i - 1]) {
|
||||
keyframe += gop.g;
|
||||
|
|
Loading…
Reference in a new issue