mirror of https://git.ffmpeg.org/ffmpeg.git
ratecontrol: Use correct function pointer casts instead of void*
libavcodec/ratecontrol.c:120:9: warning: ISO C forbids initialization between function pointer and ‘void *’ [-Wpedantic] libavcodec/ratecontrol.c:121:9: warning: ISO C forbids initialization between function pointer and ‘void *’ [-Wpedantic]
This commit is contained in:
parent
dd299a2d6d
commit
3b50dbc51f
|
@ -472,8 +472,8 @@ av_cold int ff_rate_control_init(MpegEncContext *s)
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
static double (* const func1[])(void *, double) = {
|
static double (* const func1[])(void *, double) = {
|
||||||
(void *)bits2qp,
|
(double (*)(void *, double)) bits2qp,
|
||||||
(void *)qp2bits,
|
(double (*)(void *, double)) qp2bits,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
static const char * const func1_names[] = {
|
static const char * const func1_names[] = {
|
||||||
|
|
Loading…
Reference in New Issue