diff options
author | Michael Niedermayer | 2014-12-17 01:31:48 +0100 |
---|---|---|
committer | Michael Niedermayer | 2014-12-17 01:33:06 +0100 |
commit | f3b5b139ad853b6f69c6a0b036815a60e7b3f261 (patch) | |
tree | a8fe3d79881281517c0bbff8ba299a05890a8af4 | |
parent | 2a983ff7fe076ae93926eb33cfb44ca49183dacc (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>
-rw-r--r-- | libavcodec/h264.h | 1 |
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; |