avcodec/zmbv: Call decode_intra directly
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 17 Oct 2019 12:35:14 +0000 (14:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 19 Oct 2019 16:20:44 +0000 (18:20 +0200)
commit6090ac1d043c28937761ab0b0381088e900fa617
tree1e9dc67a17aba7e325666ca5a50cd4bfdfee8c71
parent2c78a76cb0443f8a12a5eadc3b58373aa2f4ab22
avcodec/zmbv: Call decode_intra directly

zmbv has only one function for decoding intra frames, namely
decode_intra; and yet up until now it has been called via a function
pointer. This has been changed.

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@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/zmbv.c