summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2020-08-27 05:38:44 +0800
committerRick Kern <kernrj@gmail.com>2020-09-28 21:45:54 -0400
commit419d2524a8239a8f00b4c1702c91065b259615a2 (patch)
treec7cca7c3b1d82dfe5dd36cad3256fbdf50384193 /libavcodec/videotoolboxenc.c
parente16788a32398e5199d61e79c8784f4523eadc001 (diff)
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 <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c4
1 files changed, 3 insertions, 1 deletions
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,