mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Limited maximum number of reference frames to 15
This now complies with the specification (when using only L0 reference list)
This commit is contained in:
parent
18c3d9c72d
commit
bb1ae0da62
|
@ -23,7 +23,7 @@ meant to be user configurable later.
|
|||
0: only first picture is intra
|
||||
1: all pictures are intra
|
||||
2-N: every Nth picture is intra
|
||||
-r, --ref <integer> : Reference frames, range 1..16 [3]
|
||||
-r, --ref <integer> : Reference frames, range 1..15 [3]
|
||||
--no-deblock : Disable deblocking filter
|
||||
--deblock <beta:tc> : Deblocking filter parameters
|
||||
beta and tc range is -6..6 [0:0]
|
||||
|
|
|
@ -186,8 +186,8 @@ static int config_parse(config *cfg, const char *name, const char *value)
|
|||
cfg->intra_period = atoi(value);
|
||||
OPT("ref") {
|
||||
cfg->ref_frames = atoi(value);
|
||||
if (cfg->ref_frames < 1 || cfg->ref_frames > MAX_REF_PIC_COUNT) {
|
||||
fprintf(stderr, "--ref out of range [1..16], set to 3\n");
|
||||
if (cfg->ref_frames < 1 || cfg->ref_frames >= MAX_REF_PIC_COUNT) {
|
||||
fprintf(stderr, "--ref out of range [1..15], set to 3\n");
|
||||
cfg->ref_frames = 3;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ int main(int argc, char *argv[])
|
|||
" 0: only first picture is intra\n"
|
||||
" 1: all pictures are intra\n"
|
||||
" 2-N: every Nth picture is intra\n"
|
||||
" -r, --ref <integer> : Reference frames, range 1..16 [3]\n"
|
||||
" -r, --ref <integer> : Reference frames, range 1..15 [3]\n"
|
||||
" --no-deblock : Disable deblocking filter\n"
|
||||
" --deblock <beta:tc> : Deblocking filter parameters\n"
|
||||
" beta and tc range is -6..6 [0:0]\n"
|
||||
|
|
Loading…
Reference in a new issue