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>
This commit is contained in:
Zhao Zhili 2020-08-27 05:38:44 +08:00 committed by Rick Kern
parent e16788a323
commit 419d2524a8
1 changed files with 3 additions and 1 deletions

View File

@ -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,