Merge "hal: fix internal codec flag not initialized"