summaryrefslogtreecommitdiff
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-05-04 12:47:15 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-05-06 09:14:43 +0200
commit46c1917350f58dfab84e41919e6c02d43950db8c (patch)
treef333a10d04fdacd857174e46fcf41dab0f55c41b /libavformat/nutdec.c
parent2d5fd7886a29b36e696d01ee777c886b421f4eb2 (diff)
nut: use a define for the nut version
Ease switching version in the future and make evident why that value.
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index cee411b601..00c9ae36b7 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -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);