diff options
author | James Almer <jamrial@gmail.com> | 2017-03-31 16:38:37 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-31 16:38:37 -0300 |
commit | b725b482c6af996cb1922c48c3b32c3a6e857ea1 (patch) | |
tree | cdce29580a057ea3f7f96c8023fe5a476661848f /libavcodec/libopenh264enc.c | |
parent | fc2a94219df7eccd540e0dac42c27cd9e35148de (diff) | |
parent | 800d91d348c89fc8ca3fbec7696ab1ec8787acc6 (diff) | |
download | ffmpeg-b725b482c6af996cb1922c48c3b32c3a6e857ea1.tar.gz |
Merge commit '800d91d348c89fc8ca3fbec7696ab1ec8787acc6'
* commit '800d91d348c89fc8ca3fbec7696ab1ec8787acc6':
Drop pointless void* casts
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libopenh264enc.c')
-rw-r--r-- | libavcodec/libopenh264enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c index 648f59b767..9c22bf4f30 100644 --- a/libavcodec/libopenh264enc.c +++ b/libavcodec/libopenh264enc.c @@ -112,10 +112,10 @@ static av_cold int svc_encode_init(AVCodecContext *avctx) // Set the logging callback function to one that uses av_log() (see implementation above). callback_function = (WelsTraceCallback) ff_libopenh264_trace_callback; - (*s->encoder)->SetOption(s->encoder, ENCODER_OPTION_TRACE_CALLBACK, (void *)&callback_function); + (*s->encoder)->SetOption(s->encoder, ENCODER_OPTION_TRACE_CALLBACK, &callback_function); // Set the AVCodecContext as the libopenh264 callback context so that it can be passed to av_log(). - (*s->encoder)->SetOption(s->encoder, ENCODER_OPTION_TRACE_CALLBACK_CONTEXT, (void *)&avctx); + (*s->encoder)->SetOption(s->encoder, ENCODER_OPTION_TRACE_CALLBACK_CONTEXT, &avctx); (*s->encoder)->GetDefaultParams(s->encoder, ¶m); |