aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rtjpeg.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-08-06 13:59:04 +0200
committerAnton Khirnov <anton@khirnov.net>2012-10-06 09:46:03 +0200
commit459feb7cce03af7154c098171fc9d36fc9d472f6 (patch)
tree258f4039c44470c6f4d9a853ca24268bf829fbaa /libavcodec/rtjpeg.h
parentaa4121276777b20eaaa83bf9bd544b00748c865c (diff)
downloadffmpeg-459feb7cce03af7154c098171fc9d36fc9d472f6.tar.gz
nuv: check RTjpeg header for validity
CC: libav-stable@libav.org (cherry picked from commit 859a579e9bbf47fae2e09494c43bcf813dcb2fad) Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit 6704522ca9dd32c858ee474492be568c386910f9) Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit f31170d4e7f9671e019315391160d454b18d7296) Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/rtjpeg.h')
-rw-r--r--libavcodec/rtjpeg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/rtjpeg.h b/libavcodec/rtjpeg.h
index 4bcb9f70ca..73d41f481d 100644
--- a/libavcodec/rtjpeg.h
+++ b/libavcodec/rtjpeg.h
@@ -25,6 +25,9 @@
#include <stdint.h>
#include "dsputil.h"
+#define RTJPEG_FILE_VERSION 0
+#define RTJPEG_HEADER_SIZE 12
+
typedef struct {
int w, h;
DSPContext *dsp;