From 419d2524a8239a8f00b4c1702c91065b259615a2 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Thu, 27 Aug 2020 05:38:44 +0800 Subject: [PATCH] avcodec/videotoolboxenc: fix align issue bool a53_cc is accessed as int: src/libavutil/opt.c:129:9: runtime error: store to misaligned address 0x7fbf454121a3 for type 'int', which requires 4 byte alignment Signed-off-by: Rick Kern --- libavcodec/videotoolboxenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index fe0c98300b..7c87b6865c 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -226,7 +226,9 @@ typedef struct VTEncContext { bool flushing; bool has_b_frames; bool warned_color_range; - bool a53_cc; + + /* can't be bool type since AVOption will access it as int */ + int a53_cc; } VTEncContext; static int vtenc_populate_extradata(AVCodecContext *avctx,