[FFmpeg-cvslog] libopenjpegenc: use variable instead of type for sizeof
Andreas Cadhalpun
git at videolan.org
Tue Jun 2 22:45:02 CEST 2015
ffmpeg | branch: master | Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com> | Mon Jun 1 00:16:29 2015 +0200| [cb658d17b623718451cb7d7bbe9079bafe88557f] | committer: Andreas Cadhalpun
libopenjpegenc: use variable instead of type for sizeof
Reviewed-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb658d17b623718451cb7d7bbe9079bafe88557f
---
libavcodec/libopenjpegenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c
index 6c77527..014c2f9 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;
More information about the ffmpeg-cvslog
mailing list