mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
Merge commit '800d91d348c89fc8ca3fbec7696ab1ec8787acc6'
* commit '800d91d348c89fc8ca3fbec7696ab1ec8787acc6': Drop pointless void* casts Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
b725b482c6
@ -640,7 +640,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. */
|
||||
|
@ -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);
|
||||
|
||||
|
@ -199,7 +199,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;
|
||||
|
@ -350,7 +350,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
status = hwctx->render2(avctx, frame, (void *)&pic_ctx->info,
|
||||
pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers);
|
||||
} else
|
||||
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);
|
||||
|
||||
|
@ -119,8 +119,7 @@ static av_cold int avisynth_load_library(void)
|
||||
return AVERROR_UNKNOWN;
|
||||
|
||||
#define LOAD_AVS_FUNC(name, continue_on_fail) \
|
||||
avs_library.name = \
|
||||
(void *)dlsym(avs_library.library, #name); \
|
||||
avs_library.name = dlsym(avs_library.library, #name); \
|
||||
if (!continue_on_fail && !avs_library.name) \
|
||||
goto fail;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user