]> git.sesse.net Git - ffmpeg/commitdiff
Drop pointless void* casts
authorDiego Biurrun <diego@biurrun.de>
Fri, 30 Oct 2015 14:26:25 +0000 (15:26 +0100)
committerDiego Biurrun <diego@biurrun.de>
Sun, 13 Nov 2016 17:44:01 +0000 (18:44 +0100)
libavcodec/flac_parser.c
libavcodec/libopenh264enc.c
libavcodec/libschroedinger.c
libavcodec/vdpau.c
libavformat/avisynth.c

index 70b9a651e9974af0e01fdb16a04c1a03959bebbe..cb394f2bdb3747ca2a96418e6a875b6f25f2dacf 100644 (file)
@@ -588,7 +588,7 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx,
                                   read_end - read_start, NULL);
         } else {
             int8_t pad[MAX_FRAME_HEADER_SIZE] = { 0 };
-            av_fifo_generic_write(fpc->fifo_buf, (void*) pad, sizeof(pad), NULL);
+            av_fifo_generic_write(fpc->fifo_buf, pad, sizeof(pad), NULL);
         }
 
         /* Tag headers and update sequences. */
index a09b7cf618ea9c0adfe7b6ec79809cb7de814ee1..b7c011893ea1a57750a73a609324c0297c42f66a 100644 (file)
@@ -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);
 
index 16e0fe89b97098c7e1de49ca6cd29fef98ebd359..af3000f3716709de59e27013b30ff25ddfb32fa8 100644 (file)
@@ -200,7 +200,7 @@ SchroFrame *ff_create_schro_frame(AVCodecContext *avctx,
     p_frame->format = schro_frame_fmt;
     p_frame->width  = y_width;
     p_frame->height = y_height;
-    schro_frame_set_free_callback(p_frame, free_schro_frame, (void *)p_pic);
+    schro_frame_set_free_callback(p_frame, free_schro_frame, p_pic);
 
     for (i = 0; i < 3; ++i) {
         p_frame->components[i].width  = i ? uv_width : y_width;
index f638d201159dd8168242e01acce3fdb211c37e41..d3cb188d7422dc0c61890d4d766dde37eff9d9bb 100644 (file)
@@ -267,7 +267,7 @@ int ff_vdpau_common_end_frame(AVCodecContext *avctx, AVFrame *frame,
     if (val < 0)
         return val;
 
-    status = vdctx->render(vdctx->decoder, surf, (void *)&pic_ctx->info,
+    status = vdctx->render(vdctx->decoder, surf, &pic_ctx->info,
                            pic_ctx->bitstream_buffers_used,
                            pic_ctx->bitstream_buffers);
 
index fe71a427a6875a59c32aa7de44f1564035ef511e..7d5b139adeb50277bcece9f77860a896bd73529e 100644 (file)
@@ -118,8 +118,7 @@ static av_cold int avisynth_load_library(void)
         return AVERROR_UNKNOWN;
 
 #define LOAD_AVS_FUNC(name, continue_on_fail)                          \
-        avs_library.name =                                             \
-            (void *)GetProcAddress(avs_library.library, #name);        \
+        avs_library.name = GetProcAddress(avs_library.library, #name); \
         if (!continue_on_fail && !avs_library.name)                    \
             goto fail;