[FFmpeg-devel] [PATCH] avcodec/zmbv: Simplify assigning decode_intra function pointer
Tomas Härdin
tjoppen at acc.umu.se
Mon Oct 7 17:56:09 EEST 2019
mån 2019-10-07 klockan 02:57 +0200 skrev Andreas Rheinhardt:
> zmbv has only one function for decoding intra frames, namely
> decode_intra. This can be used to simplify the process of choosing the
> right function pointer.
>
> This also removes spec-incompliant conversions between function pointers
> and pointers of type void * and thereby fixes the warning "ISO C forbids
> assignment between function pointer and ‘void *’" that GCC emits with
> the -pedantic option.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
> libavcodec/zmbv.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
Why not just call zmbv_decode_intra() directly?
/Tomas
More information about the ffmpeg-devel
mailing list