Fix bug in lp-gop parsing

Unnecessary mod operation resulted in 0 as the reference delta.
This commit is contained in:
Ari Koivula 2015-11-16 11:21:34 +02:00
parent cfe834bb53
commit b6e443f3ce

View file

@ -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) { for (int i = 1; i < gop_pic->ref_neg_count; ++i) {
while (keyframe == gop_pic->ref_neg[i - 1]) { while (keyframe == gop_pic->ref_neg[i - 1]) {
keyframe += gop.g; keyframe += gop.g;