提交 419d2524 编写于 作者: Z Zhao Zhili 提交者: Rick Kern

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: NRick Kern <kernrj@gmail.com>
上级 e16788a3
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册