mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 05:11:09 +00:00
libopenjpegenc: use variable instead of type for sizeof
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
1577526b47
commit
cb658d17b6
@ -574,7 +574,7 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&ctx->event_mgr, 0, sizeof(opj_event_mgr_t));
|
memset(&ctx->event_mgr, 0, sizeof(ctx->event_mgr));
|
||||||
ctx->event_mgr.info_handler = info_callback;
|
ctx->event_mgr.info_handler = info_callback;
|
||||||
ctx->event_mgr.error_handler = error_callback;
|
ctx->event_mgr.error_handler = error_callback;
|
||||||
ctx->event_mgr.warning_handler = warning_callback;
|
ctx->event_mgr.warning_handler = warning_callback;
|
||||||
|
Loading…
Reference in New Issue
Block a user