aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-06-01 00:16:29 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-06-02 22:41:51 +0200
commitcb658d17b623718451cb7d7bbe9079bafe88557f (patch)
tree847afb4f76f5c1b59529ee15fca1aa788387b0c4
parent1577526b47439f33a999339efdec5d624b70e1da (diff)
downloadffmpeg-cb658d17b623718451cb7d7bbe9079bafe88557f.tar.gz
libopenjpegenc: use variable instead of type for sizeof
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
-rw-r--r--libavcodec/libopenjpegenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c
index 6c77527b77..014c2f9d28 100644
--- a/libavcodec/libopenjpegenc.c
+++ b/libavcodec/libopenjpegenc.c
@@ -574,7 +574,7 @@ static int libopenjpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
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.error_handler = error_callback;
ctx->event_mgr.warning_handler = warning_callback;