also put WORDS_BIGENDIAN in config.h
fix avcodec decode flow_def + thread_count > 1