Convert if/else/else/... to a loop.
The underlying library is named "libmp4ff". To reduce confusion, rename the plugin to a more specific name.
Make it X_decoder_plugin.c.