nut: use a define for the nut version
Ease switching version in the future and make evident why that value.
This commit is contained in:
parent
2d5fd7886a
commit
46c1917350
3 changed files with 4 additions and 2 deletions
|
@ -213,7 +213,7 @@ static int decode_main_header(NUTContext *nut)
|
|||
end = get_packetheader(nut, bc, 1, MAIN_STARTCODE);
|
||||
end += avio_tell(bc);
|
||||
|
||||
GET_V(tmp, tmp >= 2 && tmp <= 3);
|
||||
GET_V(tmp, tmp >= 2 && tmp <= NUT_VERSION);
|
||||
GET_V(stream_count, tmp > 0 && tmp <= NUT_MAX_STREAMS);
|
||||
|
||||
nut->max_distance = ffio_read_varlen(bc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue