Skip to content

Commit

Permalink
Fix gop disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAsura committed Dec 20, 2016
1 parent 70a52f0 commit deb63f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,12 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
cfg->gop[7].poc_offset = 7; cfg->gop[7].qp_offset = 4; cfg->gop[7].layer = 4; cfg->gop[7].qp_factor = 0.68; cfg->gop[7].is_ref = 0;
cfg->gop[7].ref_neg_count = 3; cfg->gop[7].ref_neg[0] = 1; cfg->gop[7].ref_neg[1] = 3; cfg->gop[7].ref_neg[2] = 7;
cfg->gop[7].ref_pos_count = 1; cfg->gop[7].ref_pos[0] = 1;
} else if (atoi(value) == 0) {
//Disable gop
cfg->gop_len = 0;
cfg->gop_lowdelay = 0;
cfg->gop_lp_definition.d = 0;
cfg->gop_lp_definition.t = 0;
} else if (atoi(value)) {
fprintf(stderr, "Input error: unsupported gop length, must be 0 or 8\n");
return 0;
Expand Down

0 comments on commit deb63f7

Please sign in to comment.