summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-17 01:31:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-17 01:33:06 +0100
commitf3b5b139ad853b6f69c6a0b036815a60e7b3f261 (patch)
treea8fe3d79881281517c0bbff8ba299a05890a8af4 /libavcodec
parent2a983ff7fe076ae93926eb33cfb44ca49183dacc (diff)
avcodec/h264: make the first field of H264Context an AVClass
Fixes use of freed memory Fixes: asan_heap-uaf_3660f67_757_cov_1257014655_Hi422FR1_SONY_A.jsv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 8af991b4c7..74c1bbf79f 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -338,6 +338,7 @@ typedef struct H264Picture {
* H264Context
*/
typedef struct H264Context {
+ AVClass *av_class;
AVCodecContext *avctx;
MECmpContext mecc;
VideoDSPContext vdsp;