summaryrefslogtreecommitdiff
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-23 03:25:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-25 02:03:08 +0100
commit6aa50374bf27f5a7cbb023e64699a26ea619cf88 (patch)
tree112033c500af70529b66644979d85643781bcb23 /libavformat/nutdec.c
parent3cfa310c5de526dbc40d7b33eb6234cff29d8f8c (diff)
downloadffmpeg-6aa50374bf27f5a7cbb023e64699a26ea619cf88.tar.gz
avformat/nut: store version in the context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index aa7ca676fb..26c6f0d3b0 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -232,6 +232,7 @@ static int decode_main_header(NUTContext *nut)
tmp);
return AVERROR(ENOSYS);
}
+ nut->version = tmp;
GET_V(stream_count, tmp > 0 && tmp <= NUT_MAX_STREAMS);