projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79fce1e
)
nut: Use nut->version in the version range check
author
Luca Barbato
<lu_zero@gentoo.org>
Mon, 7 Jul 2014 18:48:34 +0000
(20:48 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 8 Jul 2014 17:04:09 +0000
(19:04 +0200)
It was wrongly left unchanged when the version field had been
introduced. (
c94e2e85cb6af8a570d8542a830556243bd32873
)
libavformat/nutdec.c
patch
|
blob
|
history
diff --git
a/libavformat/nutdec.c
b/libavformat/nutdec.c
index 838c181589307bf4deddf2d3bbb2fbbe7df76e59..8ec67ae355b54466242e2071ea62117841fefd67 100644
(file)
--- a/
libavformat/nutdec.c
+++ b/
libavformat/nutdec.c
@@
-214,9
+214,10
@@
static int decode_main_header(NUTContext *nut)
end += avio_tell(bc);
nut->version = ffio_read_varlen(bc);
- if (tmp < NUT_MIN_VERSION && tmp > NUT_MAX_VERSION) {
- av_log(s, AV_LOG_ERROR, "Version %"PRId64" not supported.\n",
- tmp);
+ if (nut->version < NUT_MIN_VERSION &&
+ nut->version > NUT_MAX_VERSION) {
+ av_log(s, AV_LOG_ERROR, "Version %d not supported.\n",
+ nut->version);
return AVERROR(ENOSYS);
}