summaryrefslogtreecommitdiff
path: root/libavcodec/libopenh264enc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-10-30 15:26:25 +0100
committerDiego Biurrun <diego@biurrun.de>2016-11-13 18:44:01 +0100
commit800d91d348c89fc8ca3fbec7696ab1ec8787acc6 (patch)
tree7a6a89666e2fad6cf14a90a2b5949b35fe194dd7 /libavcodec/libopenh264enc.c
parentd316f9cefcd854071985c6f524a9a15348240264 (diff)
downloadffmpeg-800d91d348c89fc8ca3fbec7696ab1ec8787acc6.tar.gz
Drop pointless void* casts
Diffstat (limited to 'libavcodec/libopenh264enc.c')
-rw-r--r--libavcodec/libopenh264enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index a09b7cf618..b7c011893e 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, &param);