1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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>
This commit is contained in:
Michael Niedermayer
2014-12-17 01:31:48 +01:00
parent 2a983ff7fe
commit f3b5b139ad

View File

@@ -338,6 +338,7 @@ typedef struct H264Picture {
* H264Context * H264Context
*/ */
typedef struct H264Context { typedef struct H264Context {
AVClass *av_class;
AVCodecContext *avctx; AVCodecContext *avctx;
MECmpContext mecc; MECmpContext mecc;
VideoDSPContext vdsp; VideoDSPContext vdsp;