check for avresample_set_channel_mapping
create macro to perform statement checks
add some more libav api checks