summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-12-13 17:53:31 +0100
committerAnton Khirnov <anton@khirnov.net>2012-12-19 22:32:54 +0100
commit582368626188c070d4300913c6da5efa4c24cfb2 (patch)
tree8a771209f80fe16a9d19dc82239988dc55db7f35 /libavcodec/mpeg12.h
parentc661cb6672af5ebcb900ec8766b24761bd2ab011 (diff)
mpeg12: do not decode extradata more than once.
Fixes CVE-2012-2803. CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/mpeg12.h')
-rw-r--r--libavcodec/mpeg12.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h
index ab0352ff10..0f9faaf19c 100644
--- a/libavcodec/mpeg12.h
+++ b/libavcodec/mpeg12.h
@@ -42,6 +42,7 @@ typedef struct Mpeg1Context {
AVRational frame_rate_ext; ///< MPEG-2 specific framerate modificator
int sync; ///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
int closed_gop; ///< GOP is closed
+ int extradata_decoded;
} Mpeg1Context;
extern uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];